mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-27 08:16:41 +01:00
improve activation logic
This commit is contained in:
@@ -678,7 +678,7 @@ class AdminController extends AdminBaseController
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->post = ['_redirect' => 'themes'];
|
||||
$this->post = ['_redirect' => 'themes' ];
|
||||
|
||||
// Make sure theme exists (throws exception)
|
||||
$name = $this->route;
|
||||
@@ -699,6 +699,8 @@ class AdminController extends AdminBaseController
|
||||
$this->admin->setMessage($this->admin::translate('PLUGIN_ADMIN.SUCCESSFULLY_CHANGED_THEME'), 'info');
|
||||
|
||||
Cache::clearCache('invalidate');
|
||||
|
||||
$this->post = ['_redirect' => 'themes/' . $name ];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user