diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-06 06:43:30 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-06 06:43:30 +0000 |
commit | 63019040a47edb1b0b10e5fa455d75af4e275a00 (patch) | |
tree | 6916d025d47f3d4ee0612b8231c158d7e1b114ec | |
parent | 85bf4a010b71e9d27e1ecde5c6953b7379401bef (diff) | |
download | brdo-63019040a47edb1b0b10e5fa455d75af4e275a00.tar.gz brdo-63019040a47edb1b0b10e5fa455d75af4e275a00.tar.bz2 |
- #22154: Change : in aggregator block IDs to -, the colon is an illegal character and causes problems in CSS.
-rw-r--r-- | database/updates.inc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc index e1e33734e..084036657 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -110,7 +110,8 @@ $sql_updates = array( "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); |