From ea9ca82f1285e8f4c368dab827d9bb233ea7c893 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 19 Dec 2010 22:23:37 -0700 Subject: [PATCH] Registry not working due to viral copy/paste error --- framework/Core/lib/Horde/Registry.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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.'); } -- 2.11.0