Show
Ignore:
Timestamp:
02/27/2008 02:12:48 PM (11 months ago)
Author:
gregmac
Message:

Allow html::base() to return absolute paths (no protocol/domain) when possible; change defaults for site_domain and site_protocol to be '/kohana/' and blank, respectively

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/application/config/config.php

    r2177 r2178  
    11<?php defined('SYSPATH') or die('No direct script access.'); 
    22/** 
    3  * Domain name, with the installation directory. Default: localhost/kohana/ 
    4  * If this starts with a /, Kohana will try to get the domain from HTTP_HOST 
    5  * from  the web server. 
     3 * Base path of the web site. If this includes a domain, (eg, "localhost/kohana/") then 
     4 * a full URL will be used (eg, "http://localhost/kohana/"). If it only includes the path,  
     5 * and a site_protocol is specified, the domain will be auto-detected. 
    66 */ 
    7 $config['site_domain'] = 'localhost/kohana/'; 
     7$config['site_domain'] = '/kohana/'; 
    88 
    99/** 
    10  * Default protocol used to access the website. Default: http 
     10 * Force a default protocol to be used by the site. If no site_protocol is specified, then the  
     11 * current protocol is used, or when possible, only an absolute path (with no protocol/domain)  
     12 * is used. 
    1113 */ 
    12 $config['site_protocol'] = 'http'; 
     14$config['site_protocol'] = ''; 
    1315 
    1416/**