diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-06-07 18:15:04 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-06-07 18:19:23 +0300 |
commit | 6d3f3824656581d385769290cfffa1566780bbda (patch) | |
tree | d0d8f6e76c1a70c5965ee808d46b6fd7b45cbde6 /appinfo | |
parent | 058012856ab9421957f9339d310b4b3e52f1d338 (diff) |
Do not enable Notifications on the login/ pages
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 7090f62..c3a2fa5 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -37,7 +37,8 @@ use OCP\Util; $request = \OC::$server->getRequest(); if (\OC::$server->getUserSession()->getUser() !== null && substr($request->getScriptName(), 0 - strlen('/index.php')) === '/index.php' - && substr($request->getPathInfo(), 0, strlen('/s/')) !== '/s/') { + && substr($request->getPathInfo(), 0, strlen('/s/')) !== '/s/' + && substr($request->getPathInfo(), 0, strlen('/login/')) !== '/login/') { Util::addScript('notifications', 'app'); Util::addScript('notifications', 'notification'); Util::addStyle('notifications', 'styles'); |