Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-07 18:15:04 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-06-07 18:19:23 +0300
commit6d3f3824656581d385769290cfffa1566780bbda (patch)
treed0d8f6e76c1a70c5965ee808d46b6fd7b45cbde6 /appinfo
parent058012856ab9421957f9339d310b4b3e52f1d338 (diff)
Do not enable Notifications on the login/ pages
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php3
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');