We need the parameter values here (Bug #8800).
authorJan Schneider <jan@horde.org>
Mon, 4 Jan 2010 18:17:57 +0000 (19:17 +0100)
committerJan Schneider <jan@horde.org>
Mon, 4 Jan 2010 18:22:18 +0000 (19:22 +0100)
framework/Block/lib/Horde/Block.php
horde/templates/portal/layout.inc

index 9432c1b..f0466a9 100644 (file)
@@ -144,6 +144,16 @@ class Horde_Block
     }
 
     /**
+     * Returns a hash of block parameters and their configured values.
+     *
+     * @return array  Parameter values.
+     */
+    public function getParamValues()
+    {
+        return $this->_params;
+    }
+
+    /**
      * Returns the content for this block.
      *
      * This function handles the changing of current application as
index c1033e1..3587bad 100644 (file)
@@ -79,7 +79,7 @@
 <?php
 if ($blocks->isEditable($blockInfo['app'], $blockInfo['block'])):
     $block = &$layout->getBlock($row, $col);
-    foreach ($block->getParams() as $key => $val) {
+    foreach ($block->getParamValues() as $key => $val) {
         $defaults[$key] = $val;
     }
     if (!isset($defaults['_refresh_time'])) {