diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-30 23:05:44 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-30 23:05:44 +0100 |
commit | 057920b16596267248e2fdcbb80501c332ab7079 (patch) | |
tree | e1c2d0b679afd0a1595d7bb540a06098ecd53ac4 /lib | |
parent | f452d2d0c455f1de6877990f7da7633c97eff960 (diff) | |
download | nextcloud-server-057920b16596267248e2fdcbb80501c332ab7079.tar.gz nextcloud-server-057920b16596267248e2fdcbb80501c332ab7079.zip |
Still load js files in maintance mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 24002d19c1f..2d441062714 100644 --- a/lib/base.php +++ b/lib/base.php @@ -545,8 +545,11 @@ class OC { require_once 'core/setup.php'; exit(); } - self::checkMaintenanceMode(); - self::checkUpgrade(); + $request = OC_Request::getPathInfo(); + if(substr($request, -3) !== '.js'){// we need these files during the upgrade + self::checkMaintenanceMode(); + self::checkUpgrade(); + } try { OC::getRouter()->match(OC_Request::getPathInfo()); @@ -557,6 +560,7 @@ class OC { OC_Response::setStatus(405); return; } + $app = OC::$REQUESTEDAPP; $file = OC::$REQUESTEDFILE; $param = array('app' => $app, 'file' => $file); |