From: Michael M Slusarz Date: Mon, 20 Dec 2010 05:23:37 +0000 (-0700) Subject: Registry not working due to viral copy/paste error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ea9ca82f1285e8f4c368dab827d9bb233ea7c893;p=horde.git Registry not working due to viral copy/paste error --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 7acfd0763..8a8aa901b 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -770,9 +770,9 @@ class Horde_Registry */ public function hasInterface($interface) { - return !empty($this->interfaces[$interface]) ? - $this->interfaces[$interface] : - false; + return !empty($this->_interfaces[$interface]) + ? $this->_interfaces[$interface] + : false; } /** @@ -788,10 +788,10 @@ class Horde_Registry { if (is_null($app)) { list($interface, $call) = explode('/', $method, 2); - if (!empty($this->interfaces[$method])) { - $app = $this->interfaces[$method]; - } elseif (!empty($this->interfaces[$interface])) { - $app = $this->interfaces[$interface]; + if (!empty($this->_interfaces[$method])) { + $app = $this->_interfaces[$method]; + } elseif (!empty($this->_interfaces[$interface])) { + $app = $this->_interfaces[$interface]; } else { return false; } @@ -842,10 +842,10 @@ class Horde_Registry { list($interface, $call) = explode('/', $method, 2); - if (!empty($this->interfaces[$method])) { - $app = $this->interfaces[$method]; - } elseif (!empty($this->interfaces[$interface])) { - $app = $this->interfaces[$interface]; + if (!empty($this->_interfaces[$method])) { + $app = $this->_interfaces[$method]; + } elseif (!empty($this->_interfaces[$interface])) { + $app = $this->_interfaces[$interface]; } else { throw new Horde_Exception('The method "' . $method . '" is not defined in the Horde Registry.'); } @@ -974,10 +974,10 @@ class Horde_Registry { list($interface, $call) = explode('/', $method, 2); - if (!empty($this->interfaces[$method])) { - $app = $this->interfaces[$method]; - } elseif (!empty($this->interfaces[$interface])) { - $app = $this->interfaces[$interface]; + if (!empty($this->_interfaces[$method])) { + $app = $this->_interfaces[$method]; + } elseif (!empty($this->_interfaces[$interface])) { + $app = $this->_interfaces[$interface]; } else { throw new Horde_Exception('The method "' . $method . '" is not defined in the Horde Registry.'); }