- #22154: Change : in aggregator block IDs to -, the colon is an illegal character and causes problems in CSS.

4.7.x
Steven Wittens 2005-05-06 06:33:45 +00:00
parent 0d134850d9
commit ec4c655f5a
2 changed files with 4 additions and 4 deletions

View File

@ -201,11 +201,11 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
if ($op == 'list') { if ($op == 'list') {
$result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title'); $result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title');
while ($category = db_fetch_object($result)) { while ($category = db_fetch_object($result)) {
$block['category:'. $category->cid]['info'] = t('%title category latest items', array('%title' => theme('placeholder', $category->title))); $block['category-'. $category->cid]['info'] = t('%title category latest items', array('%title' => theme('placeholder', $category->title)));
} }
$result = db_query('SELECT fid, title FROM {aggregator_feed} ORDER BY fid'); $result = db_query('SELECT fid, title FROM {aggregator_feed} ORDER BY fid');
while ($feed = db_fetch_object($result)) { while ($feed = db_fetch_object($result)) {
$block['feed:'. $feed->fid]['info'] = t('%title feed latest items', array('%title' => theme('placeholder', $feed->title))); $block['feed-'. $feed->fid]['info'] = t('%title feed latest items', array('%title' => theme('placeholder', $feed->title)));
} }
} }
else if ($op == 'configure') { else if ($op == 'configure') {

View File

@ -201,11 +201,11 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
if ($op == 'list') { if ($op == 'list') {
$result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title'); $result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title');
while ($category = db_fetch_object($result)) { while ($category = db_fetch_object($result)) {
$block['category:'. $category->cid]['info'] = t('%title category latest items', array('%title' => theme('placeholder', $category->title))); $block['category-'. $category->cid]['info'] = t('%title category latest items', array('%title' => theme('placeholder', $category->title)));
} }
$result = db_query('SELECT fid, title FROM {aggregator_feed} ORDER BY fid'); $result = db_query('SELECT fid, title FROM {aggregator_feed} ORDER BY fid');
while ($feed = db_fetch_object($result)) { while ($feed = db_fetch_object($result)) {
$block['feed:'. $feed->fid]['info'] = t('%title feed latest items', array('%title' => theme('placeholder', $feed->title))); $block['feed-'. $feed->fid]['info'] = t('%title feed latest items', array('%title' => theme('placeholder', $feed->title)));
} }
} }
else if ($op == 'configure') { else if ($op == 'configure') {