Changeset 14 for trunk/lib/App.inc.php
- Timestamp:
- Sep 12, 2005 10:31:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r13 r14 302 302 // and is used whenever a URL need be used to the current site. 303 303 // Not available on cli scripts obviously. 304 if (isset($_SERVER['SCRIPT_URI']) && '' != $_SERVER['SCRIPT_URI']) { 305 $site_url = parse_url($_SERVER['SCRIPT_URI']); 306 $this->setParam(array('site_url' => sprintf('%s://%s', $site_url['scheme'], $site_url['host']))); 304 if (isset($_SERVER['HTTP_HOST']) && '' != $_SERVER['HTTP_HOST']) { 305 $this->setParam(array('site_url' => sprintf('%s://%s', ('on' == getenv('HTTPS') ? 'https' : 'http'), getenv('HTTP_HOST')))); 307 306 } 308 307
Note: See TracChangeset
for help on using the changeset viewer.