aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-08 21:31:15 -0700
committerfriendica <info@friendica.com>2013-05-08 21:31:15 -0700
commit735140e8d9f86c5ee0cbc29b50129e1abb73a647 (patch)
tree60b09d1f96dabfc4175845eeee7142f17af9791f /include/plugin.php
parentcb0a90d6281a0fef998bfa342612fe47f91a2099 (diff)
parentcdcbe9772423d5373f6d0d4aa33700446a989340 (diff)
downloadvolse-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.php21
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;
}