summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-25 07:54:33 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-25 07:54:33 +0000
commit58b4672406f5ad3e5165c1027376dcce9e779a5c (patch)
tree5746d7f2e1bd2baa6ca3d43178f3030cfcf6c0ee /database
parentd2f5f7cf783381d6869bcebd544e3a5ab07586a8 (diff)
downloadbrdo-58b4672406f5ad3e5165c1027376dcce9e779a5c.tar.gz
brdo-58b4672406f5ad3e5165c1027376dcce9e779a5c.tar.bz2
- Patch #48161 by dorpy et al: fixed problem with comment upgrades.
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 08741457d..e92ca2335 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -1685,3 +1685,16 @@ function system_update_173() {
return $ret;
}
+
+function system_update_173() {
+ // update comments system variables on upgrade.
+ $mode = variable_get('comment_default_mode', 4);
+ if ($mode > 0) {
+ variable_set('comment_default_mode', $mode - 1);
+ }
+ $order = variable_get('comment_default_order', 1);
+ if ($order > 0) {
+ variable_set('comment_default_order', $order - 1);
+ }
+ return array();
+}