diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-04 20:37:00 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-06 20:24:15 +0000 |
commit | 6a812644e4d0f6eed8dca4e20c6f7135d881012a (patch) | |
tree | 546a05ff2314e3127c4b1010e9d8729c5e4e4ee8 /public.php | |
parent | 6a250d0d20c92513a883a7103885712127b51cc8 (diff) | |
download | nextcloud-server-6a812644e4d0f6eed8dca4e20c6f7135d881012a.tar.gz nextcloud-server-6a812644e4d0f6eed8dca4e20c6f7135d881012a.zip |
Correct remote and public, and last occurence of OC::
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public.php b/public.php index f974e1c50d2..19c02a7a027 100644 --- a/public.php +++ b/public.php @@ -8,8 +8,8 @@ if(is_null($file)){ exit; } -$parts=explode('/',$file); -$app=$parts[2]; +$parts=explode('/',$file,2); +$app=$parts[0]; OC_App::loadApp($app); -require_once(OC::$APPSROOT . $file); +require_once(OC_App::getAppPath($app) .'/'. $parts[1]); |