- Patch #551080 by Gábor Hojtsy: the by module page blocks did not have the new show flag.

merge-requests/26/head
Dries Buytaert 2009-08-25 10:37:36 +00:00
parent f9f8a6cb81
commit 41e2215ea8
1 changed files with 2 additions and 1 deletions

View File

@ -1955,7 +1955,7 @@ function system_batch_page() {
*/
function theme_admin_block($block) {
// Don't display the block if it has no content to display.
if (!$block['show']) {
if (empty($block['show'])) {
return '';
}
@ -2080,6 +2080,7 @@ function theme_system_admin_by_module($menu_items) {
$block['title'] = $module;
$block['content'] = theme('item_list', $items);
$block['description'] = t($description);
$block['show'] = TRUE;
if ($block_output = theme('admin_block', $block)) {
if (!isset($block['position'])) {