aboutsummaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-10-22 12:49:11 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-10-28 12:23:02 +0200
commita8e8a89ade2e5fd1aed16905335fbb765fbdde67 (patch)
treec07a6170a0d038cc33382d8cefa0a459f6f17636 /core/Application.php
parent3323b1ac0d92f8beaf96763fb7ef67d1ed05b6ec (diff)
downloadnextcloud-server-a8e8a89ade2e5fd1aed16905335fbb765fbdde67.tar.gz
nextcloud-server-a8e8a89ade2e5fd1aed16905335fbb765fbdde67.zip
Only check unsupported browsers on user rendering
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 749f2d176d4..6b3d7d6e0c7 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -5,6 +5,7 @@
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Joas Schilling <coding@schilljs.com>
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Julius Härtl <jus@bitgrid.net>
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Mario Danic <mario@lovelyhq.com>
@@ -42,6 +43,7 @@ use OC\Authentication\Listeners\UserDeletedStoreCleanupListener;
use OC\Authentication\Listeners\UserDeletedTokenCleanupListener;
use OC\Authentication\Listeners\UserDeletedWebAuthnCleanupListener;
use OC\Authentication\Notifications\Notifier as AuthenticationNotifier;
+use OC\Core\Listener\BeforeTemplateRenderedListener;
use OC\Core\Notification\CoreNotifier;
use OC\DB\Connection;
use OC\DB\MissingColumnInformation;
@@ -51,6 +53,7 @@ use OC\DB\SchemaWrapper;
use OC\Metadata\FileEventListener;
use OC\TagManager;
use OCP\AppFramework\App;
+use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Events\Node\NodeDeletedEvent;
use OCP\Files\Events\Node\NodeWrittenEvent;
@@ -310,6 +313,7 @@ class Application extends App {
}
);
+ $eventDispatcher->addServiceListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class);
$eventDispatcher->addServiceListener(RemoteWipeStarted::class, RemoteWipeActivityListener::class);
$eventDispatcher->addServiceListener(RemoteWipeStarted::class, RemoteWipeNotificationsListener::class);
$eventDispatcher->addServiceListener(RemoteWipeStarted::class, RemoteWipeEmailListener::class);