From 63019040a47edb1b0b10e5fa455d75af4e275a00 Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Fri, 6 May 2005 06:43:30 +0000 Subject: [PATCH] - #22154: Change : in aggregator block IDs to -, the colon is an illegal character and causes problems in CSS. --- database/updates.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/database/updates.inc b/database/updates.inc index e1e33734e4df..08403665768a 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -110,7 +110,8 @@ "2005-04-11" => "update_131", "2005-04-14" => "update_132", "2005-04-24" => "update_133", - "2005-04-30" => "update_134" + "2005-04-30" => "update_134", + "2005-05-06" => "update_135" ); function update_32() { @@ -2437,6 +2438,15 @@ function update_134() { return $ret; } +function update_135() { + $result = db_query("SELECT delta FROM {blocks} WHERE module = 'aggregator'"); + while ($block = db_fetch_object($result)) { + list($type, $id) = explode(':', $block->delta); + db_query("UPDATE {blocks} SET delta = '%s' WHERE module = 'aggregator' AND delta = '%s'", $type .'-'. $id, $block->delta); + } + return array(); +} + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql); -- GitLab