type is no longer a parameter; this file is autoloaded by the class_exists() call
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 08:14:54 +0000 (02:14 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 08:14:54 +0000 (02:14 -0600)
framework/Block/lib/Horde/Block/Collection.php

index 604f0a1..75fc4c2 100644 (file)
@@ -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));