No more PEAR_Error
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 19 Jul 2010 14:26:18 +0000 (10:26 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 19 Jul 2010 14:26:18 +0000 (10:26 -0400)
framework/Block/lib/Horde/Block/Collection.php
framework/Block/lib/Horde/Block/Layout/View.php

index 4568f57..6501871 100644 (file)
@@ -424,9 +424,6 @@ class Horde_Block_Collection
     {
         if (!isset($this->_blocks[$app][$block]['params'])) {
             $blockOb = $this->getBlock($app, $block);
-            if ($blockOb instanceof PEAR_Error) {
-                return $blockOb;
-            }
             $this->_blocks[$app][$block]['params'] = $blockOb->getParams();
         }
 
index e94b960..d206592 100644 (file)
@@ -84,9 +84,6 @@ class Horde_Block_Layout_View extends Horde_Block_Layout
                         if ($block instanceof Horde_Block) {
                             $header = $block->getTitle();
                             $content = $block->getContent();
-                            if ($content instanceof PEAR_Error) {
-                                $content = $content->getMessage();
-                            }
                             if ($GLOBALS['browser']->hasFeature('xmlhttpreq')) {
                                 $refresh_time = isset($item['params']['params']['_refresh_time']) ? $item['params']['params']['_refresh_time'] : $interval;
                             }