summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-17 21:56:33 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-17 21:56:33 +0200
commitb35c6b57a90022bb66608b6587a907e99d0c4aca (patch)
tree89aba834f4e4ea0269d2d409a0d8668a1ba34550 /index.php
parent6146b6a1314a7bedd09d4f0451b3f77f6faf61f7 (diff)
downloadnextcloud-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.php5
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();