]> git.mxchange.org Git - friendica.git/commitdiff
couple more places where file_get_contents was used
authorZach Prezkuta <fermion@gmx.com>
Mon, 24 Dec 2012 02:29:19 +0000 (19:29 -0700)
committerZach Prezkuta <fermion@gmx.com>
Mon, 24 Dec 2012 02:29:19 +0000 (19:29 -0700)
view/theme/dispy/theme.php
view/theme/smoothly/theme.php

index 5168fa8e050b0a3202abee327479df610dc50146..a1de5498e6ea68e3fd3d1c244a9c6929ff878ce2 100644 (file)
@@ -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);
        }
index 742cb0d1e66959568b19fe51e41bcf80e997e8ad..1f1ee7327b5ac656256607f9117934c039403da1 100644 (file)
@@ -117,7 +117,7 @@ if(! function_exists('_js_in_foot')) {
                $ssl_state = null;
                $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);
        }