From: Michael M Slusarz Date: Tue, 11 Aug 2009 21:28:03 +0000 (-0600) Subject: Fix callAppMethod() calls X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1ec3dacd25ce7804a8eb085e1cd07a49c852ee4c;p=horde.git Fix callAppMethod() calls --- diff --git a/framework/Auth/lib/Horde/Auth/Application.php b/framework/Auth/lib/Horde/Auth/Application.php index b55c0e0e3..caf2d678b 100644 --- a/framework/Auth/lib/Horde/Auth/Application.php +++ b/framework/Auth/lib/Horde/Auth/Application.php @@ -155,7 +155,7 @@ class Horde_Auth_Application extends Horde_Auth_Base { if ($this->hasCapability('exists')) { $registry = Horde_Registry::singleton(); - return $registry->callAppMethod($this->_app, $this->_apiMethods['exists'], array($userId)); + return $registry->callAppMethod($this->_app, $this->_apiMethods['exists'], array('args' => array($userId))); } else { return parent::exists($userId); } @@ -173,7 +173,7 @@ class Horde_Auth_Application extends Horde_Auth_Base { if ($this->hasCapability('add')) { $registry = Horde_Registry::singleton(); - $registry->callAppMethod($this->_app, $this->_apiMethods['exists'], array($userId, $credentials)); + $registry->callAppMethod($this->_app, $this->_apiMethods['exists'], array('args' => array($userId, $credentials))); } else { parent::addUser($userId, $credentials); } @@ -192,7 +192,7 @@ class Horde_Auth_Application extends Horde_Auth_Base { if ($this->hasCapability('update')) { $registry = Horde_Registry::singleton(); - $registry->callAppMethod($this->_app, $this->_apiMethods['update'], array($oldID, $newID, $credentials)); + $registry->callAppMethod($this->_app, $this->_apiMethods['update'], array('args' => array($oldID, $newID, $credentials))); } else { parent::updateUser($userId, $credentials); } @@ -209,7 +209,7 @@ class Horde_Auth_Application extends Horde_Auth_Base { if ($this->hasCapability('remove')) { $registry = Horde_Registry::singleton(); - $registry->callAppMethod($this->_app, $this->_apiMethods['remove'], array($userId)); + $registry->callAppMethod($this->_app, $this->_apiMethods['remove'], array('args' => array($userId))); Horde_Auth::removeUserData($userId); } else { parent::removeUser($userId);