From a15bd62b7e76e01bd44ea34b25c5bd1f93d6f507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 12 Mar 2008 00:31:46 +0100 Subject: [PATCH] Remove workaround for PHP4 --- include/objectManager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index 8fa869c..bb7e319 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -148,10 +148,7 @@ class ObjectManager /* Check whether the associated class has the given method */ public function checkMethod($sMethodName, $bEnableOutput) { - // NOTE: we only 'new' here because php4 requires an instance - // of an object as the first argument to method_exists(), php5 - // doesn't - if(!method_exists(new $this->sClass(), $sMethodName)) + if(!method_exists($this->sClass, $sMethodName)) { if($bEnableOutput) echo "class '".$this->sClass."' lacks method '".$sMethodName."'\n"; return false;