mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
OC_Util is better thank OCP\JSON because it'll redirect the user to the index.php instead of displaying an error
This commit is contained in:
parent
4885a52ba4
commit
2028c81161
3 changed files with 3 additions and 3 deletions
|
|
@ -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' );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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' );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue