Changeset 39


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

${1}

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/css/admin.inc.css

    r38 r39  
    215215table
    216216{
    217     border: 1;
     217    border-size: 1px;
    218218    border-collapse: collapse;
    219219    border-spacing: 0;
     
    236236table.list
    237237{
    238     border: 1;
     238    border-size: 1px;
    239239    width: 100%;
    240240    margin: 4px 0;
  • 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.