From: Michael J. Rubinsky Date: Sat, 4 Sep 2010 16:34:43 +0000 (-0400) Subject: Partially revert ed6f463144b70b05304a: application blocks are not currently autoloadable. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bd265a439e711f414f918b329d5962a8b5eb0ea6;p=horde.git Partially revert ed6f463144b70b05304a: application blocks are not currently autoloadable. --- diff --git a/framework/Block/lib/Horde/Block/Collection.php b/framework/Block/lib/Horde/Block/Collection.php index 75fc4c28b..b3fc93be2 100644 --- a/framework/Block/lib/Horde/Block/Collection.php +++ b/framework/Block/lib/Horde/Block/Collection.php @@ -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));