Issue #1027724: Fix contextual links rendering even when contextual.module is not...
authorEarl Miles
Thu, 3 Mar 2011 17:06:09 +0000 (09:06 -0800)
committerEarl Miles
Thu, 3 Mar 2011 17:06:09 +0000 (09:06 -0800)
panels.module

index 49e8079..b7d233a 100644 (file)
@@ -1162,7 +1162,7 @@ function template_preprocess_panels_pane(&$vars) {
 
     // Take any that may have been in the render array we were given and
     // move them up so they appear outside the pane properly.
-    if (is_array($content->content) && isset($content->content['#contextual_links'])) {
+    if (is_array($content->content) && isset($content->content['#contextual_links']) && module_exists('contextual')) {
       $element = array(
         '#type' => 'contextual_links',
         '#contextual_links' => $content->content['#contextual_links'],