diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/index.php b/index.php index 9fff459807e..fe8f7f15038 100644 --- a/index.php +++ b/index.php @@ -50,14 +50,18 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ // Someone is logged in : elseif(OC_User::isLoggedIn()) { + OC_App::loadApps(); if(isset($_GET["logout"]) and ($_GET["logout"])) { - OC_App::loadApps(); OC_User::logout(); header("Location: ".OC::$WEBROOT.'/'); exit(); - } - else { - OC_Util::redirectToDefaultPage(); + }else{ + if(is_null(OC::$REQUESTEDFILE)){ + OC::loadapp(); + }else{ + OC::loadfile(); + } + } // For all others cases, we display the guest page : |