Fix hardcoded admin route

This commit is contained in:
Flavio Copes 2015-10-16 14:59:07 +02:00
parent 05ba2c0215
commit 9c3d9860b9
1 changed files with 1 additions and 1 deletions

View File

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