From fdd9ed7e51607ebf5a01b8b8d5bd9de25139b528 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 23 Dec 2012 19:29:19 -0700 Subject: [PATCH] couple more places where file_get_contents was used --- view/theme/dispy/theme.php | 4 ++-- view/theme/smoothly/theme.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/view/theme/dispy/theme.php b/view/theme/dispy/theme.php index 5168fa8e0..a1de5498e 100644 --- a/view/theme/dispy/theme.php +++ b/view/theme/dispy/theme.php @@ -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); } diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 742cb0d1e..1f1ee7327 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -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); }