Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
memcache
Commits
1502097b
Commit
1502097b
authored
Sep 16, 2011
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#616282
by longwave: avoid calling theme() if the theme system wasn't initiatilized.
parent
7db27664
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
memcache_admin/memcache_admin.module
memcache_admin/memcache_admin.module
+8
-0
No files found.
memcache_admin/memcache_admin.module
View file @
1502097b
...
...
@@ -230,6 +230,14 @@ function _memcache_admin_get_bin_for_cluster($cluster) {
function
memcache_admin_shutdown
()
{
global
$_memcache_statistics
;
// Don't call theme() during shutdown if the registry has been rebuilt (such
// as when enabling/disabling modules on admin/build/modules) as things break.
// Instead, simply exit without displaying admin statistics for this page
// load. See http://drupal.org/node/616282 for discussion.
if
(
!
function_exists
(
'theme_get_registry'
)
||
!
theme_get_registry
())
{
return
;
}
// Try not to break non-HTML pages.
if
(
function_exists
(
'drupal_get_http_header'
))
{
$header
=
drupal_get_http_header
(
'content-type'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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