aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.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 /mod/profiles.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 'mod/profiles.php')
-rw-r--r--mod/profiles.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index cb8e8c59d..32ee13034 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -347,9 +347,9 @@ function profiles_content(&$a) {
require_once('include/profile_selectors.php');
- $tpl = load_view_file('view/profed_head.tpl');
+ $tpl = file_get_contents('view/profed_head.tpl');
- $opt_tpl = load_view_file("view/profile-hide-friends.tpl");
+ $opt_tpl = file_get_contents("view/profile-hide-friends.tpl");
$hide_friends = replace_macros($opt_tpl,array(
'$desc' => t('Hide my contact/friend list from viewers of this profile?'),
'$yes_str' => t('Yes'),
@@ -364,7 +364,7 @@ function profiles_content(&$a) {
$is_default = (($r[0]['is-default']) ? 1 : 0);
- $tpl = load_view_file("view/profile_edit.tpl");
+ $tpl = file_get_contents("view/profile_edit.tpl");
$o .= replace_macros($tpl,array(
'$banner' => t('Edit Profile Details'),
'$submit' => t('Submit'),
@@ -451,7 +451,7 @@ function profiles_content(&$a) {
local_user());
if(count($r)) {
- $tpl_header = load_view_file('view/profile_listing_header.tpl');
+ $tpl_header = file_get_contents('view/profile_listing_header.tpl');
$o .= replace_macros($tpl_header,array(
'$header' => t('Profiles'),
'$chg_photo' => t('Change profile photo'),
@@ -459,7 +459,7 @@ function profiles_content(&$a) {
));
- $tpl = load_view_file('view/profile_entry.tpl');
+ $tpl = file_get_contents('view/profile_entry.tpl');
foreach($r as $rr) {
$o .= replace_macros($tpl, array(