mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 20:05:53 +01:00
Fix static call to Plugins and Themes objects
This commit is contained in:
@@ -254,12 +254,12 @@ class Admin
|
||||
|
||||
default:
|
||||
if (preg_match('|plugins/|', $type)) {
|
||||
$obj = Plugins::get(preg_replace('|plugins/|', '', $type));
|
||||
$obj = $this->grav['plugins']->get(preg_replace('|plugins/|', '', $type));
|
||||
$obj->merge($post);
|
||||
|
||||
$data[$type] = $obj;
|
||||
} elseif (preg_match('|themes/|', $type)) {
|
||||
$obj = Themes::get(preg_replace('|themes/|', '', $type));
|
||||
$obj = $this->grav['themes']->get(preg_replace('|themes/|', '', $type));
|
||||
$obj->merge($post);
|
||||
|
||||
$data[$type] = $obj;
|
||||
|
||||
Reference in New Issue
Block a user