Fix route

This commit is contained in:
Flavio Copes 2015-10-08 18:12:48 +02:00
parent 68acc600b6
commit b9eb895a45
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use Symfony\Component\Yaml\Yaml;
class CommentsPlugin extends Plugin class CommentsPlugin extends Plugin
{ {
protected $route = '/admin/comments'; protected $route = 'comments';
/** /**
* @return array * @return array
@ -57,7 +57,7 @@ class CommentsPlugin extends Plugin
'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0], 'onDataTypeExcludeFromDataManagerPluginHook' => ['onDataTypeExcludeFromDataManagerPluginHook', 0],
]); ]);
if (strpos($uri->path(), $this->route) === false) { if (strpos($uri->path(), '/admin/' . $this->route) === false) {
return; return;
} }