It seems like bad style to use <?php global $theme ?> in .tpl.php files. If $theme is needed in the page template, let's send it in as a variable so that it is consistent across all themes.
| Comment | File | Size | Author |
|---|---|---|---|
| global_theme_patch.txt | 1.9 KB | robertdouglass |
Comments
Comment #1
robertdouglass commentedComment #2
robertdouglass commentedComment #3
dries commentedIs there any theme that uses the $theme variable? Only bluemarine seems to be using it and according to http://drupal.org/node/27791 it might be dead code.
Comment #4
Steven commentedComment #5
(not verified) commentedComment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commented