#741078 by chellman & smk-ka, fixing block sort for php versions below 5.2.6
authorJeff Miccolis
Wed, 7 Jul 2010 16:05:58 +0000 (16:05 +0000)
committerJeff Miccolis
Wed, 7 Jul 2010 16:05:58 +0000 (16:05 +0000)
plugins/context_reaction_block.inc

index ec97c70..47212ea 100644 (file)
@@ -247,7 +247,7 @@ class context_reaction_block extends context_reaction {
     $blocks = block_list($region);
     if (isset($context_blocks[$region])) {
       $blocks = array_merge($blocks, $context_blocks[$region]);
-      uasort($blocks, 'context_reaction_block::block_sort');
+      uasort($blocks, array('context_reaction_block', 'block_sort'));
     }
     return $blocks;
   }
@@ -404,7 +404,7 @@ class context_reaction_block extends context_reaction {
           }
         }
       }
-      uasort($blocks, "context_reaction_block::block_sort");
+      uasort($blocks, array('context_reaction_block', 'block_sort'));
     }
     return $blocks;
   }