]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/theme.php
Merge pull request #573 from oohlaf/fixes
[friendica.git] / view / theme / dispy / theme.php
index 71e4e62e19a14d93dfa0ffcf8cc8e861f866f829..a1de5498e6ea68e3fd3d1c244a9c6929ff878ce2 100644 (file)
@@ -22,7 +22,7 @@ $a->theme_info = array(
     'family' => 'dispy',
        'version' => '1.2.2'
 );
-$a->theme['template_engine'] = 'smarty3';
+set_template_engine($a, 'smarty3');
 
 function dispy_init(&$a) {
 
@@ -184,7 +184,7 @@ function dispy_community_info() {
        $url = $a->get_baseurl($ssl_state);
        $aside['$url'] = $url;
 
-       $tpl = file_get_contents(dirname(__file__) . '/communityhome.tpl');
+       $tpl = get_markup_template('communityhome.tpl');
        return $a->page['aside_bottom'] = replace_macros($tpl, $aside);
 }
 
@@ -195,7 +195,7 @@ if(! function_exists('_js_in_foot')) {
                $a = get_app();
                $baseurl = $a->get_baseurl($ssl_state);
                $bottom['$baseurl'] = $baseurl;
-               $tpl = file_get_contents(dirname(__file__) . '/bottom.tpl');
+               $tpl = get_markup_template('bottom.tpl');
 
                return $a->page['bottom'] = replace_macros($tpl, $bottom);
        }