Closed (fixed)
Project:
Drupal core
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jul 2005 at 17:07 UTC
Updated:
8 Oct 2005 at 22:20 UTC
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