Changeset 39 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Dec 15, 2005 9:24:53 PM (19 years ago)
Author:
scdev
Message:

${1}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r38 r39  
    4242        'site_name' => null,
    4343        'site_email' => null,
     44        'site_url' => '', // URL automatically determined by _SERVER['HTTP_HOST'] if not set here.
    4445
    4546        // The location the user will go if the system doesn't knew where else to send them.
     
    313314        // and is used whenever a URL need be used to the current site.
    314315        // 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')) {
    316317            $this->setParam(array('site_url' => sprintf('%s://%s', ('on' == getenv('HTTPS') ? 'https' : 'http'), getenv('HTTP_HOST'))));
    317318        }
Note: See TracChangeset for help on using the changeset viewer.