summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-08-26 16:08:58 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-08-26 16:08:58 +0200
commit2028c8116122f56d8087716e42162fdc651819d3 (patch)
tree2ef577c560ea14dabd3b679d0b55857fda20a1ff
parent4885a52ba44ffa13aac9df0ba5c889feb477b467 (diff)
downloadnextcloud-server-2028c8116122f56d8087716e42162fdc651819d3.tar.gz
nextcloud-server-2028c8116122f56d8087716e42162fdc651819d3.zip
OC_Util is better thank OCP\JSON because it'll redirect the user to the index.php instead of displaying an error
-rwxr-xr-xapps/impress/documentation.php2
-rwxr-xr-xapps/impress/index.php2
-rwxr-xr-xapps/impress/player.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/impress/documentation.php b/apps/impress/documentation.php
index 1047262a677..5a153deb4c2 100755
--- a/apps/impress/documentation.php
+++ b/apps/impress/documentation.php
@@ -24,7 +24,7 @@
require_once('lib/impress.php');
OCP\User::checkLoggedIn();
-OCP\JSON::checkAppEnabled('impress');
+OC_Util::checkAppEnabled('impress');
OCP\App::setActiveNavigationEntry( 'impress_index' );
diff --git a/apps/impress/index.php b/apps/impress/index.php
index 8648cb27e7b..59960ba96fa 100755
--- a/apps/impress/index.php
+++ b/apps/impress/index.php
@@ -24,7 +24,7 @@
require_once('lib/impress.php');
OCP\User::checkLoggedIn();
-OCP\JSON::checkAppEnabled('impress');
+OC_Util::checkAppEnabled('impress');
OCP\App::setActiveNavigationEntry( 'impress_index' );
diff --git a/apps/impress/player.php b/apps/impress/player.php
index 1f2423d856f..074badf5df4 100755
--- a/apps/impress/player.php
+++ b/apps/impress/player.php
@@ -25,7 +25,7 @@ require_once('lib/impress.php');
// Check if we are a user
OCP\User::checkLoggedIn();
-OCP\JSON::checkAppEnabled('impress');
+OC_Util::checkAppEnabled('impress');
$filename = OCP\Util::sanitizeHTML($_GET['file']);
$title = OCP\Util::sanitizeHTML($_GET['name']);