From 222b4c5851d7b5cf77b975a2966db902da598d3a Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 15 Aug 2009 15:37:59 -0400 Subject: [PATCH] Can't call hasMethod() when generating a link - the method name will never exist. No need to call Horde_Registry::hasMethod() from linkByPackage() anymore since we now load the api cache directly from the linkByPackage() - the hasMethod() call was always failing since the name of the link does not exist as a true API method call. --- framework/Core/lib/Horde/Registry.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 58a712358..4fe0a383e 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -706,13 +706,6 @@ class Horde_Registry */ public function linkByPackage($app, $call, $args = array(), $extra = '') { - /* Note: calling hasMethod makes sure that we've cached $app's - * services and included the API file, so we don't try to do - * it it again explicitly in this method. */ - if (!$this->hasMethod($call, $app)) { - throw new Horde_Exception('The method "' . $call . '" is not defined in ' . $app . '\'s API.'); - } - /* Make sure the link is defined. */ $this->_loadApiCache(); if (empty($this->_cache['api'][$app]['links'][$call])) { -- 2.11.0