From b9eb895a451ff29cc9cd269b15bee26d6452bd22 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 8 Oct 2015 18:12:48 +0200 Subject: [PATCH] Fix route --- comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments.php b/comments.php index 06170db..1bb9632 100644 --- a/comments.php +++ b/comments.php @@ -13,7 +13,7 @@ use Symfony\Component\Yaml\Yaml; class CommentsPlugin extends Plugin { - protected $route = '/admin/comments'; + protected $route = 'comments'; /** * @return array @@ -57,7 +57,7 @@ class CommentsPlugin extends Plugin 'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0], ]); - if (strpos($uri->path(), $this->route) === false) { + if (strpos($uri->path(), '/admin/' . $this->route) === false) { return; }