summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-04 20:37:00 +0000
committerBrice Maron <brice@bmaron.net>2012-06-06 20:24:15 +0000
commit6a812644e4d0f6eed8dca4e20c6f7135d881012a (patch)
tree546a05ff2314e3127c4b1010e9d8729c5e4e4ee8 /apps/media
parent6a250d0d20c92513a883a7103885712127b51cc8 (diff)
downloadnextcloud-server-6a812644e4d0f6eed8dca4e20c6f7135d881012a.tar.gz
nextcloud-server-6a812644e4d0f6eed8dca4e20c6f7135d881012a.zip
Correct remote and public, and last occurence of OC::
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/remote.php4
-rw-r--r--apps/media/server/xml.server.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/media/remote.php b/apps/media/remote.php
index 01add42b315..0535077cef1 100644
--- a/apps/media/remote.php
+++ b/apps/media/remote.php
@@ -5,7 +5,7 @@ $RUNTIME_APPTYPES=array('filesystem','authentication');
OC_App::loadApps($RUNTIME_APPTYPES);
if($path_info == '/ampache' || $path_info == '/ampache/'){
- require_once(OC::$APPSROOT . '/apps/media/index.php');
+ require_once(OC_App::getAppPath('media').'/index.php');
}else{
- require_once(OC::$APPSROOT . '/apps/media/server/xml.server.php');
+ require_once(OC_App::getAppPath('media').'/server/xml.server.php');
}
diff --git a/apps/media/server/xml.server.php b/apps/media/server/xml.server.php
index 6cb6c91ca06..796da130a47 100644
--- a/apps/media/server/xml.server.php
+++ b/apps/media/server/xml.server.php
@@ -22,8 +22,8 @@
*/
OCP\App::checkAppEnabled('media');
- require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
- require_once(OC::$APPSROOT . '/apps/media/lib_ampache.php');
+ require_once(OC_App::getAppPath('media').'/lib_collection.php');
+ require_once(OC_App::getAppPath('media').'/lib_ampache.php');
$arguments=$_POST;
if(!isset($_POST['action']) and isset($_GET['action'])){