mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-27 08:16:41 +01:00
improve plugin enabled logic
This commit is contained in:
@@ -624,6 +624,9 @@ class AdminController extends AdminBaseController
|
||||
$obj->save();
|
||||
|
||||
$this->post = ['_redirect' => 'plugins'];
|
||||
if ($this->grav['uri']->param('redirect')) {
|
||||
$this->post = ['_redirect' => 'plugins/' . $this->route];
|
||||
}
|
||||
$this->admin->setMessage($this->admin::translate('PLUGIN_ADMIN.SUCCESSFULLY_ENABLED_PLUGIN'), 'info');
|
||||
|
||||
Cache::clearCache('invalidate');
|
||||
|
||||
Reference in New Issue
Block a user