summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-13 18:28:45 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-13 18:28:45 +0200
commit3cf2715501be298ef00166d57a4df39829aa2c09 (patch)
tree9a67222945f8484c3130ec56ab6cc8ef2575ec11 /system/helpers
parent6f1b3841b6f660dfbaa5e00df456d793e67fe60f (diff)
parentc4f024641ab69ed9cce62a2864e47e060b81048b (diff)
Merge branch 'develop' of ellislab.beanstalkapp.com:/codeigniter into develop
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/url_helper.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index d0516cee6..9f4b85248 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -50,18 +50,21 @@ if ( ! function_exists('site_url'))
/**
* Base URL
- *
- * Returns the "base_url" item from your config file
+ *
+ * Create a local URL based on your basepath.
+ * Segments can be passed in as a string or an array, same as site_url
+ * or a URL to a file can be passed in, e.g. to an image file.
*
* @access public
+ * @param string
* @return string
*/
if ( ! function_exists('base_url'))
{
- function base_url()
+ function base_url($uri = '')
{
$CI =& get_instance();
- return $CI->config->slash_item('base_url');
+ return $CI->config->base_url($uri);
}
}