From 9c3d9860b95d0881b622e58e28e58d25b959e685 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 16 Oct 2015 14:59:07 +0200 Subject: [PATCH] Fix hardcoded admin route --- comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comments.php b/comments.php index c3df1b7..6a7016a 100644 --- a/comments.php +++ b/comments.php @@ -116,7 +116,7 @@ class CommentsPlugin extends Plugin 'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0], ]); - if (strpos($uri->path(), '/admin/' . $this->route) === false) { + if (strpos($uri->path(), $this->config->get('plugins.admin.route') . '/' . $this->route) === false) { return; }