In the block_admin_display() function inside block.admin.inc, there is the following lines.

$custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');

The problem with this system is it basis overwriting $custom_theme based on the status of $theme, this makes it impossible to theme the blocks page in anyway.

If it was simply changed to

if (!isset($custom_theme)) {
$custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');
}

Then if there was a custom them applied by a module, it would not overwrite that theme. If no custom theme applied it would operate like normal.

Comments

igor.ro’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)