diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-08-26 16:08:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-08-26 16:08:58 +0200 |
commit | 2028c8116122f56d8087716e42162fdc651819d3 (patch) | |
tree | 2ef577c560ea14dabd3b679d0b55857fda20a1ff | |
parent | 4885a52ba44ffa13aac9df0ba5c889feb477b467 (diff) | |
download | nextcloud-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-x | apps/impress/documentation.php | 2 | ||||
-rwxr-xr-x | apps/impress/index.php | 2 | ||||
-rwxr-xr-x | apps/impress/player.php | 2 |
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']); |