I'm really hoping someone knowledgeable might chime in on whether or not its advisable to modify the site_url function.
It looks like site_url() appears in the the core CI files in 16 places:
Code:
$ schphp "site_url\s*(" system
system/core/Config.php: public function site_url($uri = '', $protocol = NULL)
system/core/Config.php: * @used-by CI_Config::site_url()
system/libraries/Calendar.php: $this->next_prev_url = $this->CI->config->site_url($this->CI->router->class.'/'.$this->CI->router->method);
system/libraries/Javascript/Jquery.php: $controller = (strpos('://', $controller) === FALSE) ? $controller : $this->CI->config->site_url($controller);
system/helpers/html_helper.php: $img .= ' src="'.get_instance()->config->site_url($v).'"';
system/helpers/html_helper.php: $link .= 'href="'.$CI->config->site_url($v).'" ';
system/helpers/html_helper.php: $link .= 'href="'.$CI->config->site_url($href).'" ';
system/helpers/form_helper.php: $action = $CI->config->site_url($CI->uri->uri_string());
system/helpers/form_helper.php: $action = $CI->config->site_url($action);
system/helpers/url_helper.php: function site_url($uri = '', $protocol = NULL)
system/helpers/url_helper.php: return get_instance()->config->site_url($uri, $protocol);
system/helpers/url_helper.php: return $CI->config->site_url($CI->uri->uri_string());
system/helpers/url_helper.php: ? site_url($uri)
system/helpers/url_helper.php: : (preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri));
system/helpers/url_helper.php: $site_url = preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri);
system/helpers/url_helper.php: $uri = site_url($uri);