aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-22 18:00:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-22 18:00:19 -0700
commitd5a13b1e4c0f35445aa539ff6b3779062907a9cb (patch)
tree1cc8fd26bb33981c2ab676a20aadec9d93b865ce /mod/profiles.php
parent124129e2a06a6ae82c283c8c10b7c3c7d0a0fdae (diff)
downloadvolse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.gz
volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.bz2
volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.zip
localisation path for all view templates
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index c9dc4c80c..111610c66 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -281,9 +281,9 @@ function profiles_content(&$a) {
require_once('view/profile_selectors.php');
- $tpl = file_get_contents('view/profed_head.tpl');
+ $tpl = load_view_file('view/profed_head.tpl');
- $opt_tpl = file_get_contents("view/profile-hide-friends.tpl");
+ $opt_tpl = load_view_file("view/profile-hide-friends.tpl");
$hide_friends = replace_macros($opt_tpl,array(
'$yes_selected' => (($r[0]['hide-friends']) ? " checked=\"checked\" " : ""),
'$no_selected' => (($r[0]['hide-friends'] == 0) ? " checked=\"checked\" " : "")
@@ -298,7 +298,7 @@ function profiles_content(&$a) {
$is_default = (($r[0]['is-default']) ? 1 : 0);
- $tpl = file_get_contents("view/profile_edit.tpl");
+ $tpl = load_view_file("view/profile_edit.tpl");
$o .= replace_macros($tpl,array(
'$disabled' => (($is_default) ? 'onclick="return false;" style="color: #BBBBFF;"' : ''),
'$baseurl' => $a->get_baseurl(),
@@ -342,9 +342,9 @@ function profiles_content(&$a) {
$_SESSION['uid']);
if(count($r)) {
- $o .= file_get_contents('view/profile_listing_header.tpl');
- $tpl_default = file_get_contents('view/profile_entry_default.tpl');
- $tpl = file_get_contents('view/profile_entry.tpl');
+ $o .= load_view_file('view/profile_listing_header.tpl');
+ $tpl_default = load_view_file('view/profile_entry_default.tpl');
+ $tpl = load_view_file('view/profile_entry.tpl');
foreach($r as $rr) {
$template = (($rr['is-default']) ? $tpl_default : $tpl);