diff --git a/www/includes/theme.inc b/www/includes/theme.inc index 5928f9f..3af930e 100755 --- a/www/includes/theme.inc +++ b/www/includes/theme.inc @@ -489,6 +489,12 @@ function list_themes($refresh = FALSE) { } } else { + + // Debug line written in by Code Enigma to catch when the database goes away. + watchdog('theme_watcher', t('The list_themes() function detected the database was inactive and fell back to info files.')); + // And let's get a backtrace here too. + watchdog('theme_watcher', t('Backtrace for this event: !backtrace'), array('!backtrace' => debug_print_backtrace())); + // Scan the installation when the database should not be read. $themes = _system_theme_data(); } diff --git a/www/modules/system/system.module b/www/modules/system/system.module index 5282418..66f1158 100755 --- a/www/modules/system/system.module +++ b/www/modules/system/system.module @@ -831,6 +831,10 @@ function system_theme_data() { * An associative array of themes information. */ function _system_theme_data() { + + // Debug line written in by Code Enigma to catch when this function is run. + watchdog('theme_watcher', t('Called _system_theme_data() - theme information being rebuilt from files.')); + static $themes_info = array(); if (empty($themes_info)) {