Fix static call to Plugins and Themes objects

This commit is contained in:
Matias Griese
2014-08-29 15:05:58 +03:00
parent 8241d8fe41
commit bc3753a693
2 changed files with 3 additions and 3 deletions

View File

@@ -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;