Changeset 1840 in ExiteCMS for trunk/includes/user_functions.php


Ignore:
Timestamp:
10/09/08 13:23:47 (4 years ago)
Author:
hverton
Message:

check for maintenance status only for interactive sessions. check breaks CLI mode processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/user_functions.php

    r1802 r1840  
    263263 
    264264// check for upgrades in progress. 
    265 // NOTE: when a form has been posted, skip this and finish the POST! 
    266 if (count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
     265// NOTE: when in CLI mode,  skip this. Also, when a form has been posted, skip this and finish the POST! 
     266if (!CMS_CLI && count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
    267267 
    268268    include PATH_ADMIN."upgrade.php"; 
Note: See TracChangeset for help on using the changeset viewer.