diff options
author | friendica <info@friendica.com> | 2013-05-08 21:31:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-08 21:31:15 -0700 |
commit | 735140e8d9f86c5ee0cbc29b50129e1abb73a647 (patch) | |
tree | 60b09d1f96dabfc4175845eeee7142f17af9791f /include/plugin.php | |
parent | cb0a90d6281a0fef998bfa342612fe47f91a2099 (diff) | |
parent | cdcbe9772423d5373f6d0d4aa33700446a989340 (diff) | |
download | volse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.tar.gz volse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.tar.bz2 volse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x[-rw-r--r--] | include/plugin.php | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/include/plugin.php b/include/plugin.php index 79f6ed9c7..8406c45e5 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; } |