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; }