diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-17 21:56:33 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-17 21:56:33 +0200 |
commit | b35c6b57a90022bb66608b6587a907e99d0c4aca (patch) | |
tree | 89aba834f4e4ea0269d2d409a0d8668a1ba34550 /index.php | |
parent | 6146b6a1314a7bedd09d4f0451b3f77f6faf61f7 (diff) | |
download | nextcloud-server-b35c6b57a90022bb66608b6587a907e99d0c4aca.tar.gz nextcloud-server-b35c6b57a90022bb66608b6587a907e99d0c4aca.zip |
allow loading of css files even if a user isn't logged in
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |