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:
@@ -5503,7 +5503,7 @@ function getDirectorySize($path,$maxmtime=0)
|
|||||||
*/
|
*/
|
||||||
function isPMUnderUpdating($setFlag = 2)
|
function isPMUnderUpdating($setFlag = 2)
|
||||||
{
|
{
|
||||||
$fileCheck = PATH_TRUNK."UPDATE.dat";
|
$fileCheck = PATH_DATA."UPDATE.dat";
|
||||||
if($setFlag == 0){
|
if($setFlag == 0){
|
||||||
if (file_exists($fileCheck)){
|
if (file_exists($fileCheck)){
|
||||||
unlink ($fileCheck);
|
unlink ($fileCheck);
|
||||||
|
|||||||
@@ -273,7 +273,6 @@
|
|||||||
// the request correspond to valid php page, now parse the URI
|
// the request correspond to valid php page, now parse the URI
|
||||||
G::parseURI(getenv("REQUEST_URI"), $isRestRequest);
|
G::parseURI(getenv("REQUEST_URI"), $isRestRequest);
|
||||||
|
|
||||||
//if(isset($_SERVER['Updating']) && $_SERVER['Updating'] == true)
|
|
||||||
if(G::isPMUnderUpdating())
|
if(G::isPMUnderUpdating())
|
||||||
{
|
{
|
||||||
header("location: /update/updating.php");
|
header("location: /update/updating.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user