From 25d6ecac0eaec9633f66b539aa5b14a6aa9727bc Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 24 Mar 2015 16:54:57 -0400 Subject: [PATCH] Disabled broken maintenance screen code to squash warnings on upgrade --- airtime_mvc/application/upgrade/Upgrades.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/upgrade/Upgrades.php b/airtime_mvc/application/upgrade/Upgrades.php index 4535fe475..0b0edb442 100644 --- a/airtime_mvc/application/upgrade/Upgrades.php +++ b/airtime_mvc/application/upgrade/Upgrades.php @@ -38,14 +38,17 @@ abstract class AirtimeUpgrader //create a temporary maintenance notification file //when this file is on the server, zend framework redirects all //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"; $file = fopen($this->maintenanceFile, 'w'); fclose($file); + */ } else { //delete maintenance.txt to give users access back to Airtime + /* DISABLED because this does not work correctly if ($this->maintenanceFile) { unlink($this->maintenanceFile); - } + }*/ } }