*
* @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));
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));