Index: context.core.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/context/Attic/context.core.inc,v
retrieving revision 1.1.2.3.2.20
diff -u -p -r1.1.2.3.2.20 context.core.inc
--- context.core.inc	6 Sep 2009 03:13:54 -0000	1.1.2.3.2.20
+++ context.core.inc	21 Oct 2009 16:34:39 -0000
@@ -571,11 +571,14 @@ function context_page_alter(&$vars) {
  * Implementation of hook_context_page_condition().
  */
 function context_context_page_condition() {
-  // Menu trail condition integration
-  $trail = menu_get_active_trail();
-  foreach ($trail as $item) {
-    if (!empty($item['href'])) {
-      context_set_by_condition('menu_trail', $item['href']);
+  // Optionally skip this if not needed for the site.
+  if (!variable_get('context_skip_page_condition', FALSE)) {
+    // Menu trail condition integration
+    $trail = menu_get_active_trail();
+    foreach ($trail as $item) {
+      if (!empty($item['href'])) {
+        context_set_by_condition('menu_trail', $item['href']);
+      }
     }
   }
 }
