summaryrefslogtreecommitdiff
path: root/modules/contextual
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-10-29 12:28:23 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-10-29 12:28:23 -0700
commite56afba266a851fc7f9cf29edd831b7ee9a4802e (patch)
treecee5f40ff97e6d28b0fd5057d1deef522564e910 /modules/contextual
parent4060a322128849fcaea16b337559ece8090a459f (diff)
downloadbrdo-e56afba266a851fc7f9cf29edd831b7ee9a4802e.tar.gz
brdo-e56afba266a851fc7f9cf29edd831b7ee9a4802e.tar.bz2
Issue #1011614 by catch, pillarsdotnet: Fixed Theme registry can grow too large for MySQL max_allowed_packet() and memcache default slab size.
Diffstat (limited to 'modules/contextual')
-rw-r--r--modules/contextual/contextual.module6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/contextual/contextual.module b/modules/contextual/contextual.module
index 0d6b625e7..2716ba2f7 100644
--- a/modules/contextual/contextual.module
+++ b/modules/contextual/contextual.module
@@ -82,16 +82,12 @@ function contextual_element_info() {
* @see contextual_pre_render_links()
*/
function contextual_preprocess(&$variables, $hook) {
- static $hooks;
-
// Nothing to do here if the user is not permitted to access contextual links.
if (!user_access('access contextual links')) {
return;
}
- if (!isset($hooks)) {
- $hooks = theme_get_registry();
- }
+ $hooks = theme_get_registry(FALSE);
// Determine the primary theme function argument.
if (!empty($hooks[$hook]['variables'])) {