From 58b4672406f5ad3e5165c1027376dcce9e779a5c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 25 Feb 2006 07:54:33 +0000 Subject: - Patch #48161 by dorpy et al: fixed problem with comment upgrades. --- database/updates.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'database') 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(); +} -- cgit v1.2.3