Changeset 39 for trunk/lib/App.inc.php
- Timestamp:
- Dec 15, 2005 9:24:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r38 r39 42 42 'site_name' => null, 43 43 'site_email' => null, 44 'site_url' => '', // URL automatically determined by _SERVER['HTTP_HOST'] if not set here. 44 45 45 46 // The location the user will go if the system doesn't knew where else to send them. … … 313 314 // and is used whenever a URL need be used to the current site. 314 315 // Not available on cli scripts obviously. 315 if (isset($_SERVER['HTTP_HOST']) && '' != $_SERVER['HTTP_HOST'] ) {316 if (isset($_SERVER['HTTP_HOST']) && '' != $_SERVER['HTTP_HOST'] && '' != $this->getParam('site_url')) { 316 317 $this->setParam(array('site_url' => sprintf('%s://%s', ('on' == getenv('HTTPS') ? 'https' : 'http'), getenv('HTTP_HOST')))); 317 318 }
Note: See TracChangeset
for help on using the changeset viewer.