BUG 9814 Proposal pivot skin: UNDER CONSTRUCTION

PROBLEM  There is not a page to show up if PM is under updating.
SOLUTION Add a page to be displayed only if PM is updating.
This commit is contained in:
Ralph Asendeteufrer
2012-10-16 10:53:36 -04:00
parent 011b9f7445
commit ee5dfd39e4
2 changed files with 1 additions and 2 deletions

View File

@@ -5503,7 +5503,7 @@ function getDirectorySize($path,$maxmtime=0)
*/
function isPMUnderUpdating($setFlag = 2)
{
$fileCheck = PATH_TRUNK."UPDATE.dat";
$fileCheck = PATH_DATA."UPDATE.dat";
if($setFlag == 0){
if (file_exists($fileCheck)){
unlink ($fileCheck);

View File

@@ -273,7 +273,6 @@
// the request correspond to valid php page, now parse the URI
G::parseURI(getenv("REQUEST_URI"), $isRestRequest);
//if(isset($_SERVER['Updating']) && $_SERVER['Updating'] == true)
if(G::isPMUnderUpdating())
{
header("location: /update/updating.php");