aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-27 23:27:16 -0800
committerfriendica <info@friendica.com>2012-02-27 23:27:16 -0800
commit53412dacd4cb52f0c1162af7ba66aa01f71147b3 (patch)
tree8d6792d5e06efae2b26ae0a70696cd6278d57a6c /mod/settings.php
parent2b730ae86d1b49edda74aa6cbb0f9ed3a008ed13 (diff)
downloadvolse-hubzilla-53412dacd4cb52f0c1162af7ba66aa01f71147b3.tar.gz
volse-hubzilla-53412dacd4cb52f0c1162af7ba66aa01f71147b3.tar.bz2
volse-hubzilla-53412dacd4cb52f0c1162af7ba66aa01f71147b3.zip
update globaldir when page-type changes, add spam date field
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-xmod/settings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 90eb9dbd7..a9d00bc98 100755
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -50,6 +50,8 @@ function settings_post(&$a) {
return;
}
+ $old_page_flags = $a->user['page-flags'];
+
if(($a->argc > 1) && ($a->argv[1] === 'oauth') && x($_POST,'remove')){
$key = $_POST['remove'];
q("DELETE FROM tokens WHERE id='%s' AND uid=%d",
@@ -375,7 +377,7 @@ function settings_post(&$a) {
);
}
- if($old_visibility != $net_publish) {
+ if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
// Update global directory in background
$url = $_SESSION['my_url'];
if($url && strlen(get_config('system','directory_submit_url')))