? drupaldown
? modules/syndication
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.632
diff -u -p -r1.632 system.module
--- modules/system/system.module	14 Oct 2008 20:44:57 -0000	1.632
+++ modules/system/system.module	19 Oct 2008 02:10:47 -0000
@@ -993,7 +993,7 @@ function system_theme_default() {
  */
 function system_theme_data() {
   // Scan the installation theme .info files and their engines.
-  $themes = _system_theme_data();
+  $themes = _system_theme_data(TRUE);
 
   // Extract current files from database.
   system_get_files_database($themes, 'theme');
@@ -1014,13 +1014,15 @@ function system_theme_data() {
 /**
  * Helper function to scan and collect theme .info data and their engines.
  *
+ * @param $reset
+ *   A boolean to make sure data is fresh and not modified.
  * @return
  *   An associative array of themes information.
  */
-function _system_theme_data() {
+function _system_theme_data($reset = FALSE) {
   static $themes_info = array();
 
-  if (empty($themes_info)) {
+  if (empty($themes_info) || $reset) {
     // Find themes
     $themes = drupal_system_listing('/\.info$/', 'themes');
     // Find theme engines
