diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 0412c75..4f5f0aa 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -330,7 +330,7 @@ function block_page_build(&$page) { $all_regions = system_region_list($theme); $item = menu_get_item(); - if ($item['path'] != 'admin/structure/block/demo/' . $theme) { + if ($item['path'] != 'admin/structure/block/demo/%') { // Load all region content assigned via blocks. foreach (array_keys($all_regions) as $region) { // Assign blocks to region. @@ -350,8 +350,7 @@ function block_page_build(&$page) { } else { // Append region description if we are rendering the regions demo page. - $item = menu_get_item(); - if ($item['path'] == 'admin/structure/block/demo/' . $theme) { + if ($item['path'] == 'admin/structure/block/demo/%') { $visible_regions = array_keys(system_region_list($theme, REGIONS_VISIBLE)); foreach ($visible_regions as $region) { $description = '
' . $all_regions[$region] . '
';