Skip to content

Commit

Permalink
Fix hardcoded admin route
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Oct 16, 2015
1 parent 05ba2c0 commit 9c3d986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function onPluginsInitialized()
'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;
}

Expand Down

0 comments on commit 9c3d986

Please sign in to comment.