From: Michael M Slusarz Date: Wed, 1 Sep 2010 08:14:54 +0000 (-0600) Subject: type is no longer a parameter; this file is autoloaded by the class_exists() call X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ed6f463144b70b05304ab4f0c9d19705c6a57e62;p=horde.git type is no longer a parameter; this file is autoloaded by the class_exists() call --- diff --git a/framework/Block/lib/Horde/Block/Collection.php b/framework/Block/lib/Horde/Block/Collection.php index 604f0a1ed..75fc4c28b 100644 --- a/framework/Block/lib/Horde/Block/Collection.php +++ b/framework/Block/lib/Horde/Block/Collection.php @@ -44,7 +44,7 @@ class Horde_Block_Collection * * @return Horde_Block_Collection The Horde_Block_Collection instance. */ - static public function singleton($type = null, $apps = array()) + static public function singleton($apps = array()) { sort($apps); $signature = hash('md5', serialize($apps)); @@ -134,11 +134,6 @@ class Horde_Block_Collection throw new Horde_Exception(sprintf('%s is not activated.', $GLOBALS['registry']->get('name', $app))); } - $path = $registry->get('fileroot', $app) . '/lib/Block/' . $name . '.php'; - if (is_readable($path)) { - include_once $path; - } - $class = 'Horde_Block_' . $app . '_' . $name; if (!class_exists($class)) { throw new Horde_Exception(sprintf('%s not found.', $class));