CC-5802: Upgrade application.ini file
This commit is contained in:
parent
8d9b9c1fb7
commit
42806b1cbf
2 changed files with 4 additions and 4 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
class Zend_Controller_Plugin_Maintenance extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
protected $maintenanceFile = '/tmp/maintenance.txt';
|
||||
|
||||
public function preDispatch(Zend_Controller_Request_Abstract $request) {
|
||||
if (file_exists($this->maintenanceFile)) {
|
||||
$maintenanceFile = isset($_SERVER['AIRTIME_BASE']) ? $_SERVER['AIRTIME_BASE']."maintenance.txt" : "/tmp/maintenance.txt";
|
||||
|
||||
if (file_exists($maintenanceFile)) {
|
||||
$request->setModuleName('default')
|
||||
->setControllerName('index')
|
||||
->setActionName('maintenance')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue