diff --git a/lib/private/util.php b/lib/private/util.php index 0e029d74b7..cf14c30c4b 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -965,20 +965,6 @@ class OC_Util { OC_Template::printGuestPage("", "login", $parameters); } - - /** - * Check if the app is enabled, redirects to home if not - * - * @param string $app - * @return void - */ - public static function checkAppEnabled($app) { - if (!OC_App::isEnabled($app)) { - header('Location: ' . \OCP\Util::linkToAbsolute('', 'index.php')); - exit(); - } - } - /** * Check if the user is logged in, redirects to home if not. With * redirect URL parameter to the request URI. diff --git a/lib/public/app.php b/lib/public/app.php index cc41484262..c75a69f0c3 100644 --- a/lib/public/app.php +++ b/lib/public/app.php @@ -136,9 +136,9 @@ class App { * @param string $app * @return void * @since 4.0.0 + * @deprecated 9.0.0 ownCloud core will handle disabled apps and redirects to valid URLs */ public static function checkAppEnabled( $app ) { - \OC_Util::checkAppEnabled( $app ); } /**