diff options
Diffstat (limited to 'admin/include/themes.class.php')
-rw-r--r-- | admin/include/themes.class.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index a86828057..26e15c654 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -29,25 +29,24 @@ class DummyTheme_maintain extends ThemeMaintain { function activate($theme_version, &$errors=array()) { - return $this->__call(__FUNCTION__, func_get_args()); + if (is_callable('theme_activate')) + { + return theme_activate($this->theme_id, $theme_version, $errors); + } } function deactivate() { - return $this->__call(__FUNCTION__, func_get_args()); + if (is_callable('theme_deactivate')) + { + return theme_deactivate($this->theme_id); + } } function delete() { - return $this->__call(__FUNCTION__, func_get_args()); - } - - function __call($name, $arguments) - { - if (is_callable('theme_'.$name)) + if (is_callable('theme_delete')) { - array_unshift($arguments, $this->theme_id); - return call_user_func_array('theme_'.$name, $arguments); + return theme_delete($this->theme_id); } - return null; } } |