// PHP_SELF is only index.php

This commit is contained in:
Rémi Gaillard
2013-02-04 14:22:59 +01:00
parent 9c3f58b6a2
commit 8fd63e0f6e

View File

@@ -585,7 +585,7 @@ class FrontControllerCore extends Controller
/* Display a maintenance page if shop is closed */
protected function displayMaintenancePage()
{
if ($this->maintenance == true || (basename($_SERVER['PHP_SELF']) != 'disabled.php' && !(int)(Configuration::get('PS_SHOP_ENABLE'))))
if ($this->maintenance == true || !(int)Configuration::get('PS_SHOP_ENABLE'))
{
$this->maintenance = true;
if (!in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP'))))