aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-10 16:12:50 -0700
committerFriendika <info@friendika.com>2011-05-10 16:12:50 -0700
commitc052d688284fda76c612325b237d8352f2abb5d4 (patch)
tree7867f7a67b96f715644c2f4b9d1bc84a7371ebfc /boot.php
parent3ae36584110af2acd4a0f4805dd078da30732a1d (diff)
downloadvolse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.tar.gz
volse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.tar.bz2
volse-hubzilla-c052d688284fda76c612325b237d8352f2abb5d4.zip
don't use load_view_file() except in email templates and install of htconfig - to avoid getting wrong file when package is updated by copying over an older version.
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index e3798c7ad..12d392b44 100644
--- a/boot.php
+++ b/boot.php
@@ -378,7 +378,7 @@ class App {
function init_pagehead() {
$this->page['title'] = $this->config['sitename'];
- $tpl = load_view_file('view/head.tpl');
+ $tpl = file_get_contents('view/head.tpl');
$this->page['htmlhead'] = replace_macros($tpl,array(
'$baseurl' => $this->get_baseurl(),
'$generator' => 'Friendika' . ' ' . FRIENDIKA_VERSION,
@@ -828,7 +828,7 @@ function escape_tags($string) {
if(! function_exists('login')) {
function login($register = false) {
$o = "";
- $register_tpl = (($register) ? load_view_file("view/register-link.tpl") : "");
+ $register_tpl = (($register) ? file_get_contents("view/register-link.tpl") : "");
$register_html = replace_macros($register_tpl,array(
'$title' => t('Create a New Account'),
@@ -852,10 +852,10 @@ function login($register = false) {
$lostlink = t('Password Reset');
if(local_user()) {
- $tpl = load_view_file("view/logout.tpl");
+ $tpl = file_get_contents("view/logout.tpl");
}
else {
- $tpl = load_view_file("view/login.tpl");
+ $tpl = file_get_contents("view/login.tpl");
}
@@ -2307,7 +2307,7 @@ function profile_sidebar($profile) {
$homepage = ((x($profile,'homepage') == 1) ? '<div class="homepage"><span class="homepage-label">' . t('Homepage:') . ' </span><span class="homepage-url">' . linkify($profile['homepage']) . '</span></div><div class="profile-clear"></div>' : '');
- $tpl = load_view_file('view/profile_vcard.tpl');
+ $tpl = file_get_contents('view/profile_vcard.tpl');
$o .= replace_macros($tpl, array(
'$fullname' => $fullname,