From b35c6b57a90022bb66608b6587a907e99d0c4aca Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 17 May 2012 21:56:33 +0200 Subject: [PATCH] allow loading of css files even if a user isn't logged in --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index acca97de79..9cec3201e1 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();