diff options
Diffstat (limited to 'apps/media/ajax')
-rw-r--r-- | apps/media/ajax/api.php | 2 | ||||
-rw-r--r-- | apps/media/ajax/autoupdate.php | 2 |
2 files changed, 2 insertions, 2 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'); |