aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-10 23:35:31 -0700
committerFriendika <info@friendika.com>2011-05-10 23:35:31 -0700
commita00813497fccf295d72e35537599409b3f1eaa22 (patch)
treeff56cce12620a10117098af5103b8f3b2518b54f /include
parent5903ea38f34bef5d47d1ba76f26c802b3112de70 (diff)
downloadvolse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.tar.gz
volse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.tar.bz2
volse-hubzilla-a00813497fccf295d72e35537599409b3f1eaa22.zip
bring back load_view_file for dispy templates
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php10
-rw-r--r--include/nav.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/conversation.php b/include/conversation.php
index d3744e21f..7af7c1efd 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -107,8 +107,8 @@ function conversation(&$a, $items, $mode, $update) {
$cmnt_tpl = file_get_contents('view/comment_item.tpl');
$like_tpl = file_get_contents('view/like.tpl');
$noshare_tpl = file_get_contents('view/like_noshare.tpl');
- $tpl = file_get_contents('view/wall_item.tpl');
- $wallwall = file_get_contents('view/wallwall_item.tpl');
+ $tpl = load_view_file('view/wall_item.tpl');
+ $wallwall = load_view_file('view/wallwall_item.tpl');
$alike = array();
$dlike = array();
@@ -120,7 +120,7 @@ function conversation(&$a, $items, $mode, $update) {
// "New Item View" on network page or search page results
// - just loop through the items and format them minimally for display
- $tpl = file_get_contents('view/search_item.tpl');
+ $tpl = load_view_file('view/search_item.tpl');
$droptpl = file_get_contents('view/wall_fake_drop.tpl');
foreach($items as $item) {
@@ -664,7 +664,7 @@ function status_editor($a,$x) {
$geotag = (($x['allow_location']) ? file_get_contents('view/jot_geotag.tpl') : '');
- $tpl = file_get_contents('view/jot-header.tpl');
+ $tpl = load_view_file('view/jot-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(),
@@ -680,7 +680,7 @@ function status_editor($a,$x) {
));
- $tpl = file_get_contents("view/jot.tpl");
+ $tpl = load_view_file("view/jot.tpl");
$jotplugins = '';
$jotnets = '';
diff --git a/include/nav.php b/include/nav.php
index 602385c32..2ead5c07e 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -125,7 +125,7 @@ function nav(&$a) {
$banner .= '<a href="http://project.friendika.com"><img id="logo-img" src="images/friendika-32.png" alt="logo" /></a><span id="logo-text"><a href="http://project.friendika.com">Friendika</a></span>';
- $tpl = file_get_contents('view/nav.tpl');
+ $tpl = load_view_file('view/nav.tpl');
$a->page['nav'] .= replace_macros($tpl, array(
'$langselector' => lang_selector(),