summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-25 14:57:52 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-25 14:57:52 +0100
commit0d2a58bc5de41cc0af70c231e274d4c3e8972c25 (patch)
tree7e63853997211c9613cf5fe528175fd4f07bd17d /lib/base.php
parente5cc5a0a2d287e0acfd754c79f4f05785ea9a201 (diff)
downloadnextcloud-server-0d2a58bc5de41cc0af70c231e274d4c3e8972c25.tar.gz
nextcloud-server-0d2a58bc5de41cc0af70c231e274d4c3e8972c25.zip
Initialize router also if ownCloud isn't installed
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php34
1 files changed, 18 insertions, 16 deletions
diff --git a/lib/base.php b/lib/base.php
index 3bd998de3a5..f1a60a17739 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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();