Still load js files in maintance mode
This commit is contained in:
parent
f452d2d0c4
commit
057920b165
|
@ -545,8 +545,11 @@ class OC {
|
||||||
require_once 'core/setup.php';
|
require_once 'core/setup.php';
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
self::checkMaintenanceMode();
|
$request = OC_Request::getPathInfo();
|
||||||
self::checkUpgrade();
|
if(substr($request, -3) !== '.js'){// we need these files during the upgrade
|
||||||
|
self::checkMaintenanceMode();
|
||||||
|
self::checkUpgrade();
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
OC::getRouter()->match(OC_Request::getPathInfo());
|
OC::getRouter()->match(OC_Request::getPathInfo());
|
||||||
|
@ -557,6 +560,7 @@ class OC {
|
||||||
OC_Response::setStatus(405);
|
OC_Response::setStatus(405);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$app = OC::$REQUESTEDAPP;
|
$app = OC::$REQUESTEDAPP;
|
||||||
$file = OC::$REQUESTEDFILE;
|
$file = OC::$REQUESTEDFILE;
|
||||||
$param = array('app' => $app, 'file' => $file);
|
$param = array('app' => $app, 'file' => $file);
|
||||||
|
|
Loading…
Reference in New Issue