Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fcb68d74
Commit
fcb68d74
authored
Dec 07, 2008
by
Angie Byron
Browse files
#305653
follow-up by sun: Prevent themes from being disabled during update.
parent
baa9c7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
fcb68d74
...
...
@@ -3950,7 +3950,16 @@ function drupal_flush_all_caches() {
registry_rebuild
();
drupal_clear_css_cache
();
drupal_clear_js_cache
();
system_theme_data
();
// If invoked from update.php, we must not update the theme information in the
// database, or this will result in all themes being disabled.
if
(
defined
(
'MAINTENANCE_MODE'
)
&&
MAINTENANCE_MODE
==
'update'
)
{
_system_theme_data
();
}
else
{
system_theme_data
();
}
drupal_theme_rebuild
();
menu_rebuild
();
node_types_rebuild
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment