aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/manage.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 752b097..064b0cf 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -865,8 +865,6 @@ def manage(self, path_split):
board['anonymous'] = self.formdata['anonymous']
board['subject'] = self.formdata['subject']
board['message'] = self.formdata['message']
- switchBoard(self.formdata['type'])
- board['board_type'] = self.formdata['type']
board['useid'] = self.formdata['useid']
board['slip'] = self.formdata['slip']
board['countrycode'] = self.formdata['countrycode']
@@ -971,10 +969,17 @@ def manage(self, path_split):
except:
raise UserError(_("Time between replies must be numeric."))
+ new_type = int(self.formdata['type'])
+ if new_type != board['board_type']:
+ switchBoard(new_type)
+ board['board_type'] = new_type
+
updateBoardSettings()
+
message = _('Board options successfully updated.') + ' <a href="' + \
Settings.CGI_URL+'manage/rebuild/' + \
board['dir']+'">'+_('Rebuild')+'</a>'
+
template_filename = "message.html"
logAction(staff_account['username'], _(
'Updated options for /%s/') % board['dir'])