Upgrade to CodeIgniter 2.0.3

This commit is contained in:
Eike Foken
2011-09-13 19:15:50 +02:00
parent 8dd1099e04
commit a8c2551be2
53 changed files with 1949 additions and 578 deletions

View File

@@ -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);
}
}