Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2008 at 16:19 UTC
Updated:
8 Jul 2008 at 17:32 UTC
I've notices that, once in a while, the "Rescan template files" button (introduced here, by me) doesn't seem to work: the list of template files doesn't get refreshed. I've tracked down the bug: theme_get_registry() uses an internal cache that needs to be cleared.
I'm attaching a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| rescan.diff | 1 KB | mooffie |
Comments
Comment #1
mooffie commentedNow for a fine moment of trivia:
I explained in the inline comment that theme_get_registry()'s cache is initialized before Drupal executes our submit handler. This happens because when Drupal builds this specific form it initializes the theme system. And *this* happens because there are 'markup' elements in the form that call various theme functions ('item_list' in our case).
Comment #2
merlinofchaos commentedNice work!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.