summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-26 22:00:37 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-26 22:00:37 +0200
commitf7fb4a54c934729775f4f144ab56c95c7bb60b20 (patch)
tree7dbe1976dd0555cf7fcbd157b9da8f563fd55bad
parent5483c1be4265d254be8cb9aefbd6aa9e1a6680ff (diff)
downloadnextcloud-server-f7fb4a54c934729775f4f144ab56c95c7bb60b20.tar.gz
nextcloud-server-f7fb4a54c934729775f4f144ab56c95c7bb60b20.zip
ampache should work now
-rw-r--r--apps/media/server/xml.server.php6
-rw-r--r--apps/media/tomahawk.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/media/server/xml.server.php b/apps/media/server/xml.server.php
index 83339c91af1..deb189fbede 100644
--- a/apps/media/server/xml.server.php
+++ b/apps/media/server/xml.server.php
@@ -21,11 +21,11 @@
*
*/
+require_once('../../inc.php');
-
OC_Util::checkAppEnabled('media');
-require_once('../lib_collection.php');
-require_once('../lib_ampache.php');
+ require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
+ require_once(OC::$APPSROOT . '/apps/media/lib_ampache.php');
$arguments=$_POST;
if(!isset($_POST['action']) and isset($_GET['action'])){
diff --git a/apps/media/tomahawk.php b/apps/media/tomahawk.php
index 1ff2599e103..019e80b0f24 100644
--- a/apps/media/tomahawk.php
+++ b/apps/media/tomahawk.php
@@ -22,10 +22,10 @@
*/
$_POST=$_GET; //debug
-
+require_once('../inc.php');
OC_JSON::checkAppEnabled('media');
-require_once('lib_collection.php');
+require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
$user=isset($_POST['user'])?$_POST['user']:'';
$pass=isset($_POST['pass'])?$_POST['pass']:'';