summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-08 13:36:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-08 13:36:11 +0100
commit0f5132552c7cab120fb31f7929b754e25ddaef7a (patch)
treea1d27bc002653c20ac0e252331e9a4b5f17dcb31 /lib/private/util.php
parent5380215dca98b4afb49fa919c61fee047c804f33 (diff)
parent2f98f642415a041fa0c9820cda022f18c781a9e6 (diff)
downloadnextcloud-server-0f5132552c7cab120fb31f7929b754e25ddaef7a.tar.gz
nextcloud-server-0f5132552c7cab120fb31f7929b754e25ddaef7a.zip
Merge pull request #21292 from owncloud/checkAppEnabled-not-needed-anymore
core will handle invalid URLs and redirects properly
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 6a9980fc129..33521429be7 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.