]> source.dussan.org Git - nextcloud-server.git/commitdiff
Initialize router also if ownCloud isn't installed
authorLukas Reschke <lukas@statuscode.ch>
Fri, 25 Jan 2013 13:57:52 +0000 (14:57 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Fri, 25 Jan 2013 13:57:52 +0000 (14:57 +0100)
lib/base.php

index 3bd998de3a5c616bf451c4ff65c3c4e5c2f87bd8..f1a60a177397c6a1b6ca4c68bd5a6ac00bb73c17 100644 (file)
@@ -541,22 +541,6 @@ class OC
         */
        public static function handleRequest()
        {
-               if (!OC_Config::getValue('installed', false)) {
-                       require_once 'core/setup.php';
-                       exit();
-               }
-               // Handle redirect URL for logged in users
-               if (isset($_REQUEST['redirect_url']) && OC_User::isLoggedIn()) {
-                       $location = OC_Helper::makeURLAbsolute(urldecode($_REQUEST['redirect_url']));
-                       header('Location: ' . $location);
-                       return;
-               }
-               // Handle WebDAV
-               if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
-                       header('location: ' . OC_Helper::linkToRemote('webdav'));
-                       return;
-               }
-
                // load all the classpaths from the enabled apps so they are available
                // in the routing files of each app
                OC::loadAppClassPaths();
@@ -578,6 +562,24 @@ class OC
                        self::loadCSSFile($param);
                        return;
                }
+
+               if (!OC_Config::getValue('installed', false)) {
+                       require_once 'core/setup.php';
+                       exit();
+               }
+               
+               // Handle redirect URL for logged in users
+               if (isset($_REQUEST['redirect_url']) && OC_User::isLoggedIn()) {
+                       $location = OC_Helper::makeURLAbsolute(urldecode($_REQUEST['redirect_url']));
+                       header('Location: ' . $location);
+                       return;
+               }
+               // Handle WebDAV
+               if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
+                       header('location: ' . OC_Helper::linkToRemote('webdav'));
+                       return;
+               }
+
                // Someone is logged in :
                if (OC_User::isLoggedIn()) {
                        OC_App::loadApps();