Module: appdb
Branch: master
Commit: a15bd62b7e76e01bd44ea34b25c5bd1f93d6f507
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=a15bd62b7e76e01bd44ea34b…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Wed Mar 12 00:31:46 2008 +0100
Remove workaround for PHP4
---
include/objectManager.php | 5 +----
1 files changed, 1 insertions(+), 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;