From: Georg Ehrke Date: Thu, 17 May 2012 19:56:33 +0000 (+0200) Subject: allow loading of css files even if a user isn't logged in X-Git-Tag: v4.0.0RC2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b35c6b57a90022bb66608b6587a907e99d0c4aca;p=nextcloud-server.git allow loading of css files even if a user isn't logged in --- diff --git a/index.php b/index.php index acca97de796..9cec3201e1c 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,10 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ header('location: '.OC_Helper::linkToRemote('webdav')); exit(); } - +elseif(!OC_User::isLoggedIn() && substr(OC::$REQUESTEDFILE,-3) == 'css'){ + OC_App::loadApps(); + OC::loadfile(); +} // Someone is logged in : elseif(OC_User::isLoggedIn()) { OC_App::loadApps();