Partially revert ed6f463144b70b05304a: application blocks are not currently autoloadable.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 4 Sep 2010 16:34:43 +0000 (12:34 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 4 Sep 2010 16:34:43 +0000 (12:34 -0400)
framework/Block/lib/Horde/Block/Collection.php

index 75fc4c2..b3fc93b 100644 (file)
@@ -133,7 +133,10 @@ class Horde_Block_Collection
              !$registry->isAdmin())) {
             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));