From 78bf5a3343da568f0f68f5897045c8922f78f696 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 20 Oct 2014 08:37:19 +0000 Subject: [PATCH] Use "pageAdd*" events from the Events class --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 9d98568..070111e 100644 --- a/Plugin.php +++ b/Plugin.php @@ -24,6 +24,7 @@ namespace Mibew\Mibew\Plugin\TitleNotification; use Mibew\EventDispatcher\EventDispatcher; +use Mibew\EventDispatcher\Events; use Symfony\Component\HttpFoundation\Request; /** @@ -92,7 +93,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi { // Attach CSS and JS files of the plugin to chat window. $dispatcher = EventDispatcher::getInstance(); - $dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles'); + $dispatcher->attachListener(Events::PAGE_ADD_JS, $this, 'attachJsFiles'); } /**