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.
if you happen to call list_themes(true)
(which apparently, core doesn't currently do anywhere, but it might need to in order to fix http://drupal.org/node/134160) you get a php E_ALL warning. attached patch fixes it.
Comment | File | Size | Author |
---|---|---|---|
#1 | theme_tab.patch | 1.36 KB | chx |
list_theme_warning.patch.txt | 572 bytes | dww |
Comments
Comment #1
chx CreditAttribution: chx commentedWeirdo PHP issue in theme.inc causes list_theme(TRUE) to fail in strange ways. Attached patch solves the problem. I will research into the why.
Comment #2
chx CreditAttribution: chx commentedUmmm
http://bugs.php.net/bug.php?id=6810
http://bugs.php.net/bug.php?id=13967
http://bugs.php.net/bug.php?id=15570
Comment #3
chx CreditAttribution: chx commentedThe manual says:
Comment #4
Dries CreditAttribution: Dries commentedWeird PHP behavior, but oh well. Committed to CVS HEAD. Thanks again, chx.
Comment #5
dwwugh. well, at least my original fix was right, we need to call list_themes() before the menu rebuild(). ;) it just so happens that php is so crazy that the rebuild stuff in list_themes() never worked. :( *sigh*
in the future, i should remember that if i find something that makes no sense at all, chances are good there's a php bug involved...
Comment #6
(not verified) CreditAttribution: commented