diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-22 18:00:19 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-22 18:00:19 -0700 |
commit | d5a13b1e4c0f35445aa539ff6b3779062907a9cb (patch) | |
tree | 1cc8fd26bb33981c2ab676a20aadec9d93b865ce /mod/settings.php | |
parent | 124129e2a06a6ae82c283c8c10b7c3c7d0a0fdae (diff) | |
download | volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.gz volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.tar.bz2 volse-hubzilla-d5a13b1e4c0f35445aa539ff6b3779062907a9cb.zip |
localisation path for all view templates
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/settings.php b/mod/settings.php index 2e14fcee5..aef00c8c2 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -181,14 +181,14 @@ function settings_content(&$a) { $timezone = date_default_timezone_get(); - $opt_tpl = file_get_contents("view/profile-in-directory.tpl"); + $opt_tpl = load_view_file("view/profile-in-directory.tpl"); $profile_in_dir = replace_macros($opt_tpl,array( '$yes_selected' => (($profile['publish']) ? " checked=\"checked\" " : ""), '$no_selected' => (($profile['publish'] == 0) ? " checked=\"checked\" " : "") )); if(strlen(get_config('system','directory_submit_url'))) { - $opt_tpl = file_get_contents("view/profile-in-netdir.tpl"); + $opt_tpl = load_view_file("view/profile-in-netdir.tpl"); $profile_in_net_dir = replace_macros($opt_tpl,array( '$yes_selected' => (($profile['net-publish']) ? " checked=\"checked\" " : ""), @@ -198,11 +198,11 @@ function settings_content(&$a) { else $profile_in_net_dir = ''; - $nickname_block = file_get_contents("view/settings_nick_set.tpl"); + $nickname_block = load_view_file("view/settings_nick_set.tpl"); $nickname_subdir = ''; if(strlen($a->get_path())) { - $subdir_tpl = file_get_contents('view/settings_nick_subdir.tpl'); + $subdir_tpl = load_view_file('view/settings_nick_subdir.tpl'); $nickname_subdir = replace_macros($subdir_tpl, array( '$baseurl' => $a->get_baseurl(), '$nickname' => $nickname, @@ -230,7 +230,7 @@ function settings_content(&$a) { '$basepath' => $a->get_hostname(), '$baseurl' => $a->get_baseurl())); - $stpl = file_get_contents('view/settings.tpl'); + $stpl = load_view_file('view/settings.tpl'); $o .= replace_macros($stpl,array( '$baseurl' => $a->get_baseurl(), |