From: Hypolite Petovan Date: Sun, 19 Nov 2017 15:22:18 +0000 (-0500) Subject: Move ITemplateEngine to src X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=104a1d7fd302bc4d10a5da4f17528ecbcecf66a7;p=friendica.git Move ITemplateEngine to src - Fix method name format --- diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index f497fbee01..5dd324bf75 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 cf802513c4..616c4adb86 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 61ccb01dcf..0000000000 --- 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 0000000000..d592481192 --- /dev/null +++ b/src/Render/ITemplateEngine.php @@ -0,0 +1,15 @@ +