summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/ajax/api.php2
-rw-r--r--apps/media/ajax/autoupdate.php2
-rw-r--r--apps/media/index.php2
-rw-r--r--apps/media/server/xml.server.php2
-rw-r--r--apps/media/tomahawk.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index 9d9c14deb17..72235bf5db8 100644
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -23,7 +23,7 @@
header('Content-type: text/html; charset=UTF-8') ;
-require_once('../../../lib/base.php');
+
OC_JSON::checkAppEnabled('media');
require_once('../lib_collection.php');
require_once('../lib_scanner.php');
diff --git a/apps/media/ajax/autoupdate.php b/apps/media/ajax/autoupdate.php
index a78b5e25dd1..ea7c5006e70 100644
--- a/apps/media/ajax/autoupdate.php
+++ b/apps/media/ajax/autoupdate.php
@@ -27,7 +27,7 @@ header('Content-type: text/html; charset=UTF-8') ;
$RUNTIME_NOAPPS=true;
$RUNTIME_NOSETUPFS=true;
-require_once('../../../lib/base.php');
+
OC_JSON::checkAppEnabled('media');
$autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true');
diff --git a/apps/media/index.php b/apps/media/index.php
index 419d4ae0bde..f51d62b77cd 100644
--- a/apps/media/index.php
+++ b/apps/media/index.php
@@ -22,7 +22,7 @@
*/
-require_once('../../lib/base.php');
+
// Check if we are a user
OC_Util::checkLoggedIn();
diff --git a/apps/media/server/xml.server.php b/apps/media/server/xml.server.php
index cb9b68fc422..83339c91af1 100644
--- a/apps/media/server/xml.server.php
+++ b/apps/media/server/xml.server.php
@@ -22,7 +22,7 @@
*/
-require_once('../../../lib/base.php');
+
OC_Util::checkAppEnabled('media');
require_once('../lib_collection.php');
require_once('../lib_ampache.php');
diff --git a/apps/media/tomahawk.php b/apps/media/tomahawk.php
index 6dd41233f12..1ff2599e103 100644
--- a/apps/media/tomahawk.php
+++ b/apps/media/tomahawk.php
@@ -23,7 +23,7 @@
$_POST=$_GET; //debug
-require_once('../../lib/base.php');
+
OC_JSON::checkAppEnabled('media');
require_once('lib_collection.php');