From 116d704a54c046c0ce3a47067c0e14e16e2608e0 Mon Sep 17 00:00:00 2001
From: Martin Langhoff <martin@laptop.org>
Date: Tue, 12 Jul 2011 06:42:10 -0400
Subject: [PATCH] MDL-28303 Question Engine - fix T_PAAMAYIM_NEKUDOTAYIM
 syntax error

Older versions of PHP cannot handle $varwithclassname::foo() - so
use oldstyle call_user_func().
---
 question/engine/lib.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/question/engine/lib.php b/question/engine/lib.php
index 0461297..216a40b 100644
--- a/question/engine/lib.php
+++ b/question/engine/lib.php
@@ -335,7 +335,7 @@ abstract class question_engine {
      */
     public static function get_behaviour_required_behaviours($behaviour) {
         $class = 'qbehaviour_' . $behaviour;
-        return $class::get_required_behaviours();
+        return call_user_func(array($class, 'get_required_behaviours'));
     }
 
     /**
-- 
1.7.6

