From a3061f3ab5f09ad4d48a4a713b219e8965aca6c5 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 24 Jan 2013 15:50:21 +0100 Subject: [PATCH] Update include/serendipity_smarty_class.inc.php added smarty BC function get_template_vars() relies on some additional plugins like serendipity_event_autotitle.php, serendipity_event_multilingual, serendipity_event_sidebarhider, serendipity_event_downloadmanager, serendipity_event_microformats and possibly also more plugins by custom developers. --- include/serendipity_smarty_class.inc.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/serendipity_smarty_class.inc.php b/include/serendipity_smarty_class.inc.php index 48b21060..490bf64d 100644 --- a/include/serendipity_smarty_class.inc.php +++ b/include/serendipity_smarty_class.inc.php @@ -1,5 +1,5 @@ assignByRef($tpl_var, $value); } + /** + * Returns an array containing template variables + * + * @param string $name + * @return array + */ + public function get_template_vars($name=null) + { + return $this->getTemplateVars($name); + } + public static function test() { var_dump(get_called_class());