This is a minor improvement to a small block of code in the Block.module

It replaces 4 lines of code with 1
removes a call to a global variable
and changes a variable name to be more descriptive .

andre

CommentFileSizeAuthor
block_1_0.patch1.3 KBandremolnar

Comments

dries’s picture

Committed to HEAD.

Anonymous’s picture

valuewing admin’s picture

Title: Minor code improvement for Block.module » Block apperance with Sections module
Project: Drupal core » Sections
Version: » 5.x-1.2
Component: block.module » User interface

I do have a theme called X. I have cloned it to another directory called X-1 and placed it in drupal theme directory. My default theme is X. I have added a section and define that on certain condition this section to be invoked. for this section, i have chosen X-1 theme. For X-1 theme, i have gone to blocks settings and choose manually what are all the blocks needs to be shown. it works correctly. But the problem is, it completely looses the block colour format. it just display as text with out block format appearence.

Any idea why this could be?