Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
memcache
Commits
1502097b
Commit
1502097b
authored
Sep 16, 2011
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#616282
by longwave: avoid calling theme() if the theme system wasn't initiatilized.
parent
7db27664
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
memcache_admin/memcache_admin.module
+8
-0
8 additions, 0 deletions
memcache_admin/memcache_admin.module
with
8 additions
and
0 deletions
memcache_admin/memcache_admin.module
+
8
−
0
View file @
1502097b
...
@@ -230,6 +230,14 @@ function _memcache_admin_get_bin_for_cluster($cluster) {
...
@@ -230,6 +230,14 @@ function _memcache_admin_get_bin_for_cluster($cluster) {
function
memcache_admin_shutdown
()
{
function
memcache_admin_shutdown
()
{
global
$_memcache_statistics
;
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.
// Try not to break non-HTML pages.
if
(
function_exists
(
'drupal_get_http_header'
))
{
if
(
function_exists
(
'drupal_get_http_header'
))
{
$header
=
drupal_get_http_header
(
'content-type'
);
$header
=
drupal_get_http_header
(
'content-type'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment