Merge pull request #554 from fermionic/20121222-use-smarty-template-engine
couple more places where file_get_contents was used
This commit is contained in:
commit
80ea740cca
2 changed files with 3 additions and 3 deletions
|
@ -184,7 +184,7 @@ function dispy_community_info() {
|
||||||
$url = $a->get_baseurl($ssl_state);
|
$url = $a->get_baseurl($ssl_state);
|
||||||
$aside['$url'] = $url;
|
$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);
|
return $a->page['aside_bottom'] = replace_macros($tpl, $aside);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ if(! function_exists('_js_in_foot')) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
$baseurl = $a->get_baseurl($ssl_state);
|
$baseurl = $a->get_baseurl($ssl_state);
|
||||||
$bottom['$baseurl'] = $baseurl;
|
$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);
|
return $a->page['bottom'] = replace_macros($tpl, $bottom);
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ if(! function_exists('_js_in_foot')) {
|
||||||
$ssl_state = null;
|
$ssl_state = null;
|
||||||
$baseurl = $a->get_baseurl($ssl_state);
|
$baseurl = $a->get_baseurl($ssl_state);
|
||||||
$bottom['$baseurl'] = $baseurl;
|
$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);
|
return $a->page['bottom'] = replace_macros($tpl, $bottom);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue