Dotclear


Ignore:
Timestamp:
06/15/11 10:36:35 (13 years ago)
Author:
xave <xave@…>
Branch:
default
Message:

Tests if important constants are defined in the config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r320 r373  
    201201} 
    202202 
    203 if (!DC_ADMIN_URL) { 
     203if (!defined('DC_ADMIN_URL') || DC_ADMIN_URL) { 
    204204     echo 
    205205     '<p class="static-msg">'. 
    206      __('DC_ADMIN_URL is not defined, you should edit your configuration file.'). 
     206     'DC_ADMIN_URL '.__('is not defined, you should edit your configuration file.'). 
     207     '</p>'; 
     208} 
     209 
     210if (!defined('DC_ADMIN_MAILFROM') || DC_ADMIN_MAILFROM) { 
     211     echo 
     212     '<p class="static-msg">'. 
     213     'DC_ADMIN_MAILFROM '.__('is not defined, you should edit your configuration file.'). 
    207214     '</p>'; 
    208215} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map