aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-11 04:37:13 -0700
committerFriendika <info@friendika.com>2011-05-11 04:37:13 -0700
commitb2e92e0af32f86212d15748c6d432d658905d4b6 (patch)
tree72bf3054b2c1827166f632d7a1970a266c575134 /mod/profiles.php
parenta00813497fccf295d72e35537599409b3f1eaa22 (diff)
downloadvolse-hubzilla-b2e92e0af32f86212d15748c6d432d658905d4b6.tar.gz
volse-hubzilla-b2e92e0af32f86212d15748c6d432d658905d4b6.tar.bz2
volse-hubzilla-b2e92e0af32f86212d15748c6d432d658905d4b6.zip
deprecate load_view_file
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 32ee13034..984420aa2 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -347,9 +347,9 @@ function profiles_content(&$a) {
require_once('include/profile_selectors.php');
- $tpl = file_get_contents('view/profed_head.tpl');
+ $tpl = get_markup_template('profed_head.tpl');
- $opt_tpl = file_get_contents("view/profile-hide-friends.tpl");
+ $opt_tpl = get_markup_template("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 = file_get_contents("view/profile_edit.tpl");
+ $tpl = get_markup_template("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 = file_get_contents('view/profile_listing_header.tpl');
+ $tpl_header = get_markup_template('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 = file_get_contents('view/profile_entry.tpl');
+ $tpl = get_markup_template('profile_entry.tpl');
foreach($r as $rr) {
$o .= replace_macros($tpl, array(