aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.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/settings.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/settings.php')
-rw-r--r--mod/settings.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 99fe852ee..cba6958b3 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -310,7 +310,7 @@ function settings_content(&$a) {
$mail_pubmail = ((count($r)) ? $r[0]['pubmail'] : 0);
- $pageset_tpl = file_get_contents('view/pagetypes.tpl');
+ $pageset_tpl = get_markup_template('pagetypes.tpl');
$pagetype = replace_macros($pageset_tpl,array(
'$normal' => (($a->user['page-flags'] == PAGE_NORMAL) ? " checked=\"checked\" " : ""),
'$soapbox' => (($a->user['page-flags'] == PAGE_SOAPBOX) ? " checked=\"checked\" " : ""),
@@ -344,7 +344,7 @@ function settings_content(&$a) {
$profile_in_dir = '<input type="hidden" name="profile_in_directory" value="1" />';
}
else {
- $opt_tpl = file_get_contents("view/profile-in-directory.tpl");
+ $opt_tpl = get_markup_template("profile-in-directory.tpl");
$profile_in_dir = replace_macros($opt_tpl,array(
'$desc' => t('Publish your default profile in site directory?'),
'$yes_str' => t('Yes'),
@@ -355,7 +355,7 @@ function settings_content(&$a) {
}
if(strlen(get_config('system','directory_submit_url'))) {
- $opt_tpl = file_get_contents("view/profile-in-netdir.tpl");
+ $opt_tpl = get_markup_template("profile-in-netdir.tpl");
$profile_in_net_dir = replace_macros($opt_tpl,array(
'$desc' => t('Publish your default profile in global social directory?'),
@@ -397,7 +397,7 @@ function settings_content(&$a) {
$subdir = ((strlen($a->get_path())) ? '<br />' . t('or') . ' ' . $a->get_baseurl() . '/profile/' . $nickname : '');
- $tpl_addr = file_get_contents("view/settings_nick_set.tpl");
+ $tpl_addr = get_markup_template("settings_nick_set.tpl");
$prof_addr = replace_macros($tpl_addr,array(
'$desc' => t('Your Identity Address is'),
@@ -406,7 +406,7 @@ function settings_content(&$a) {
'$basepath' => $a->get_hostname()
));
- $stpl = load_view_file('view/settings.tpl');
+ $stpl = get_markup_template('settings.tpl');
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);