diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-08-26 16:05:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-08-26 16:05:40 +0200 |
commit | 4885a52ba44ffa13aac9df0ba5c889feb477b467 (patch) | |
tree | 8aef46719d596e30a81ac70d0ce2b2bbdadb83e4 /apps | |
parent | bcd86bfd02d4ec07a3fcadf5507d7dcdbb1f6638 (diff) | |
download | nextcloud-server-4885a52ba44ffa13aac9df0ba5c889feb477b467.tar.gz nextcloud-server-4885a52ba44ffa13aac9df0ba5c889feb477b467.zip |
Check if app is enabled
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/impress/documentation.php | 1 | ||||
-rwxr-xr-x | apps/impress/index.php | 1 | ||||
-rwxr-xr-x | apps/impress/player.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/apps/impress/documentation.php b/apps/impress/documentation.php index 17a97432a49..1047262a677 100755 --- a/apps/impress/documentation.php +++ b/apps/impress/documentation.php @@ -24,6 +24,7 @@ require_once('lib/impress.php'); OCP\User::checkLoggedIn(); +OCP\JSON::checkAppEnabled('impress'); OCP\App::setActiveNavigationEntry( 'impress_index' ); diff --git a/apps/impress/index.php b/apps/impress/index.php index c7213d86614..8648cb27e7b 100755 --- a/apps/impress/index.php +++ b/apps/impress/index.php @@ -24,6 +24,7 @@ require_once('lib/impress.php'); OCP\User::checkLoggedIn(); +OCP\JSON::checkAppEnabled('impress'); OCP\App::setActiveNavigationEntry( 'impress_index' ); diff --git a/apps/impress/player.php b/apps/impress/player.php index cd534757fb4..1f2423d856f 100755 --- a/apps/impress/player.php +++ b/apps/impress/player.php @@ -25,6 +25,7 @@ require_once('lib/impress.php'); // Check if we are a user OCP\User::checkLoggedIn(); +OCP\JSON::checkAppEnabled('impress'); $filename = OCP\Util::sanitizeHTML($_GET['file']); $title = OCP\Util::sanitizeHTML($_GET['name']); |