From 5db2a1ed9037f8c1d7c02ecac56d173929aa4fb9 Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 27 Aug 2009 12:58:29 +0000 Subject: [PATCH] theme admin handler - deprecated call_user_method() replaced with call_user_func(); e_theme_config interface class added, theme configs now implement it --- e107_handlers/theme_handler.php | 69 +++++++++++++++++--------- e107_themes/_blank/_blank_config.php | 53 +++++++++----------- e107_themes/e107v4a/e107v4a_config.php | 22 +++++--- 3 files changed, 84 insertions(+), 60 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index f2026ad02..c182b6f79 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1,23 +1,30 @@ themeConfigObj) { - $var = call_user_method("config",$this->themeConfigObj); + $var = call_user_func(array(&$this->themeConfigObj, 'config')); foreach($var as $val) { $text .= "".$val['caption'].":".$val['html'].""; @@ -562,7 +569,7 @@ class themeHandler{ { if($this->themeConfigObj) { - return call_user_method("help",$this->themeConfigObj); + return call_user_func(array(&$this->themeConfigObj, 'help')); } } @@ -573,7 +580,7 @@ class themeHandler{ $this -> loadThemeConfig(); if($this->themeConfigObj) { - return call_user_method("process",$this->themeConfigObj); + return call_user_func(array(&$this->themeConfigObj, 'process')); } } @@ -627,7 +634,7 @@ class themeHandler{

".$theme['name']."

"; - if(call_user_method("help",$this->themeConfigObj)) + if(call_user_func(array(&$this->themeConfigObj, 'help'))) { $text .= "