From d92659560b8edd0594b587103b43ad5bd5012639 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 2 Jan 2011 22:09:54 -0800 Subject: site config to force publish in site directory --- mod/settings.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'mod/settings.php') diff --git a/mod/settings.php b/mod/settings.php index eb27de06e..0f01807a2 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -247,13 +247,16 @@ function settings_content(&$a) { } - - - $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(get_config('system','publish_all')) { + $profile_in_dir = ''; + } + else { + $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 = load_view_file("view/profile-in-netdir.tpl"); -- cgit v1.2.3