Commit 58b46724 authored by Dries's avatar Dries

- Patch #48161 by dorpy et al: fixed problem with comment upgrades.

parent d2f5f7cf
......@@ -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();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment