Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Bevan commentedIt also makes line-endings unix-style, which is the standard in Drupal.
Comment #2
Bevan CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: jcnventura commented