summaryrefslogtreecommitdiffstats
path: root/apps/media/ajax
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-23 20:01:48 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-23 20:01:48 +0200
commitd1110c62ef084d5d38b8770a26def88dd0976674 (patch)
treef6ffffbaaf3d4ab40d940f05b19b43ecb7dcadb2 /apps/media/ajax
parent42a570788b22bcf28d2cc0124dbfa4cdeeb9ea04 (diff)
downloadnextcloud-server-d1110c62ef084d5d38b8770a26def88dd0976674.tar.gz
nextcloud-server-d1110c62ef084d5d38b8770a26def88dd0976674.zip
fix file path in apps/media/ajax/api.php
Diffstat (limited to 'apps/media/ajax')
-rw-r--r--apps/media/ajax/api.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index 72235bf5db8..9c7b3efce75 100644
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -23,10 +23,9 @@
header('Content-type: text/html; charset=UTF-8') ;
-
OC_JSON::checkAppEnabled('media');
-require_once('../lib_collection.php');
-require_once('../lib_scanner.php');
+require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
+require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php');
error_reporting(E_ALL); //no script error reporting because of getID3
@@ -127,5 +126,4 @@ if($arguments['action']){
exit;
}
}
-
-?>
+?> \ No newline at end of file