Skip to content
Snippets Groups Projects
Commit 63019040 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #22154: Change : in aggregator block IDs to -, the colon is an illegal...

- #22154: Change : in aggregator block IDs to -, the colon is an illegal character and causes problems in CSS.
parent 85bf4a01
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -110,7 +110,8 @@ ...@@ -110,7 +110,8 @@
"2005-04-11" => "update_131", "2005-04-11" => "update_131",
"2005-04-14" => "update_132", "2005-04-14" => "update_132",
"2005-04-24" => "update_133", "2005-04-24" => "update_133",
"2005-04-30" => "update_134" "2005-04-30" => "update_134",
"2005-05-06" => "update_135"
); );
function update_32() { function update_32() {
...@@ -2437,6 +2438,15 @@ function update_134() { ...@@ -2437,6 +2438,15 @@ function update_134() {
return $ret; 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) { function update_sql($sql) {
$edit = $_POST["edit"]; $edit = $_POST["edit"];
$result = db_query($sql); $result = db_query($sql);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment