aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2013-05-08 03:51:38 -0400
committerfabrixxm <fabrix.xm@gmail.com>2013-05-08 03:51:38 -0400
commit31a21ac24cd5cbe19e40ab3838fcc179d812da13 (patch)
treed556822e261cb2b8ff10452a7c5b07b0c2c793c7 /include/plugin.php
parent51c27579ba79d32c26052c0d1f1218a16315234b (diff)
downloadvolse-hubzilla-31a21ac24cd5cbe19e40ab3838fcc179d812da13.tar.gz
volse-hubzilla-31a21ac24cd5cbe19e40ab3838fcc179d812da13.tar.bz2
volse-hubzilla-31a21ac24cd5cbe19e40ab3838fcc179d812da13.zip
use smarty3 as default template engine. add pluggable template system
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x[-rw-r--r--]include/plugin.php21
1 files changed, 3 insertions, 18 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 31427e117..3ef97fba9 100644..100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -569,24 +569,9 @@ function get_intltext_template($s) {
function get_markup_template($s, $root = '') {
-
$a = get_app();
-
- $template_eng = $a->get_template_engine();
- if($template_eng === 'internal') {
- $template_file = theme_include($s, $root);
- if($template_file)
- return file_get_contents($template_file);
- }
- else {
- $template_file = theme_include("$template_eng/$s", $root);
-
- if($template_file) {
- $template = new FriendicaSmarty();
- $template->filename = $template_file;
-
- return $template;
- }
- }
+ $t = $a->template_engine();
+ $template = $t->get_markup_template($s, $root);
+ return $template;
}