In strict reporting environments PHP complains that "Notice: Undefined variable: block_classes in include() (line 4 of .../sites/all/themes/danland/block.tpl.php)."
This patch fixes that by checking whether $block_classes exists before printing it.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1935722.patch | 1.85 KB | Bevan |
| #3 | 1935722.patch | 403 bytes | Bevan |
| DANLAND.patch | 1.02 KB | Bevan |
Comments
Comment #1
Bevan commentedIt also makes line-endings unix-style, which is the standard in Drupal.
Comment #2
Bevan commentedThis is also a problem in block-left.tpl.php and block-right.tpl.php. This patch fixes the problem from template.php with a new function
danland_preprocess_block(). It also fixes line endings and removes deprecated CVS tags.Comment #3
Bevan commentedThis patch excludes the line ending changes and the removal of the deprecated CVS tags, so more clearly demonstrates the change for reviewing purposes.
Comment #5
jcnventura