Correctly identify disabled application methods
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 15 Aug 2009 19:55:11 +0000 (13:55 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 15 Aug 2009 20:06:09 +0000 (14:06 -0600)
framework/Core/lib/Horde/Registry.php

index 4fe0a38..771c25f 100644 (file)
@@ -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));
     }
 
     /**