diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-06 21:11:15 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-06 21:11:15 +0000 |
commit | e8447e0bda25744c4836a8fdf009a98174264eda (patch) | |
tree | 5eb765f5cc62df8ba8ab3c68afb4eec220d1d435 /lib/base.php | |
parent | 5c2b2fc8425e7fa52945b53058ac67f67d228409 (diff) | |
download | nextcloud-server-e8447e0bda25744c4836a8fdf009a98174264eda.tar.gz nextcloud-server-e8447e0bda25744c4836a8fdf009a98174264eda.zip |
Rework to fit with minizer
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php index 131485961ad..0d205c8f78c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -284,12 +284,12 @@ class OC{ public static function loadfile(){ if(file_exists(OC_App::getAppPath(OC::$REQUESTEDAPP) . '/' . OC::$REQUESTEDFILE)){ if(substr(OC::$REQUESTEDFILE, -3) == 'css'){ - $file = 'apps/' . OC::$REQUESTEDAPP . '/' . OC::$REQUESTEDFILE; + $file = OC_App::getAppWebPath(OC::$REQUESTEDAPP). '/' . OC::$REQUESTEDFILE; $minimizer = new OC_Minimizer_CSS(); - $minimizer->output(array(array(OC::$APPSROOT, OC::$APPSWEBROOT, $file))); + $minimizer->output(array(array(OC_App::getAppPath(OC::$REQUESTEDAPP), OC_App::getAppWebPath(OC::$REQUESTEDAPP), OC::$REQUESTEDFILE))); exit; }elseif(substr(OC::$REQUESTEDFILE, -3) == 'php'){ - require_once(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP . '/' . OC::$REQUESTEDFILE); + require_once(OC_App::getAppPath(OC::$REQUESTEDAPP). '/' . OC::$REQUESTEDFILE); } }else{ die(); |