diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index f497fbee0..5dd324bf7 100644 --- a/include/friendica_smarty.php +++ b/include/friendica_smarty.php @@ -1,6 +1,7 @@ parsed($template); } - public function get_template_file($file, $root=''){ + public function getTemplateFile($file, $root=''){ $a = get_app(); $template_file = get_template_file($a, SMARTY3_TEMPLATE_FOLDER.'/'.$file, $root); $template = new FriendicaSmarty(); diff --git a/include/text.php b/include/text.php index cf802513c..616c4adb8 100644 --- a/include/text.php +++ b/include/text.php @@ -30,7 +30,7 @@ function replace_macros($s, $r) { $t = $a->template_engine(); try { - $output = $t->replace_macros($s, $r); + $output = $t->replaceMacros($s, $r); } catch (Exception $e) { echo "
" . __FUNCTION__ . ": " . $e->getMessage() . ""; killme(); @@ -591,7 +591,7 @@ function get_markup_template($s, $root = '') { $a = get_app(); $t = $a->template_engine(); try { - $template = $t->get_template_file($s, $root); + $template = $t->getTemplateFile($s, $root); } catch (Exception $e) { echo "
" . __FUNCTION__ . ": " . $e->getMessage() . ""; killme(); diff --git a/object/TemplateEngine.php b/object/TemplateEngine.php deleted file mode 100644 index 61ccb01dc..000000000 --- a/object/TemplateEngine.php +++ /dev/null @@ -1,15 +0,0 @@ -register_template_engine($k); } } diff --git a/src/Render/ITemplateEngine.php b/src/Render/ITemplateEngine.php new file mode 100644 index 000000000..d59248119 --- /dev/null +++ b/src/Render/ITemplateEngine.php @@ -0,0 +1,15 @@ +