Disabled broken maintenance screen code to squash warnings on upgrade
This commit is contained in:
parent
2f4f4b05b9
commit
25d6ecac0e
|
@ -38,14 +38,17 @@ abstract class AirtimeUpgrader
|
||||||
//create a temporary maintenance notification file
|
//create a temporary maintenance notification file
|
||||||
//when this file is on the server, zend framework redirects all
|
//when this file is on the server, zend framework redirects all
|
||||||
//requests to the maintenance page and sets a 503 response code
|
//requests to the maintenance page and sets a 503 response code
|
||||||
|
/* DISABLED because this does not work correctly
|
||||||
$this->maintenanceFile = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."maintenance.txt" : "/tmp/maintenance.txt";
|
$this->maintenanceFile = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."maintenance.txt" : "/tmp/maintenance.txt";
|
||||||
$file = fopen($this->maintenanceFile, 'w');
|
$file = fopen($this->maintenanceFile, 'w');
|
||||||
fclose($file);
|
fclose($file);
|
||||||
|
*/
|
||||||
} else {
|
} else {
|
||||||
//delete maintenance.txt to give users access back to Airtime
|
//delete maintenance.txt to give users access back to Airtime
|
||||||
|
/* DISABLED because this does not work correctly
|
||||||
if ($this->maintenanceFile) {
|
if ($this->maintenanceFile) {
|
||||||
unlink($this->maintenanceFile);
|
unlink($this->maintenanceFile);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue