aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-02 22:09:54 -0800
committerFriendika <info@friendika.com>2011-01-02 22:09:54 -0800
commitd92659560b8edd0594b587103b43ad5bd5012639 (patch)
treef334d76dbd89093d8448e13e62f8b094159e576c /mod/settings.php
parentde5495f90b0327f565888d6cae9b9ae9cfa2664f (diff)
downloadvolse-hubzilla-d92659560b8edd0594b587103b43ad5bd5012639.tar.gz
volse-hubzilla-d92659560b8edd0594b587103b43ad5bd5012639.tar.bz2
volse-hubzilla-d92659560b8edd0594b587103b43ad5bd5012639.zip
site config to force publish in site directory
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php17
1 files changed, 10 insertions, 7 deletions
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 = '<input type="hidden" name="profile_in_directory" value="1" />';
+ }
+ 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");