From 88f7f552982d1bc13034879b4d941fd0d5cc01cc Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sat, 15 Aug 2009 13:55:11 -0600 Subject: [PATCH] Correctly identify disabled application methods --- framework/Core/lib/Horde/Registry.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 4fe0a383e..771c25f34 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -532,7 +532,8 @@ class Horde_Registry */ public function hasAppMethod($app, $method) { - return method_exists($this->_getOb($app, 'application'), $method); + $appob = $this->_getOb($app, 'application'); + return (method_exists($appob, $method) && !in_array($method, $appob->disabled)); } /** -- 2.11.0