From: Jan Schneider Date: Mon, 4 Jan 2010 18:17:57 +0000 (+0100) Subject: We need the parameter values here (Bug #8800). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6db838db8ce032d1412e671ec60803a87a012449;p=horde.git We need the parameter values here (Bug #8800). --- diff --git a/framework/Block/lib/Horde/Block.php b/framework/Block/lib/Horde/Block.php index 9432c1b52..f0466a9da 100644 --- a/framework/Block/lib/Horde/Block.php +++ b/framework/Block/lib/Horde/Block.php @@ -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 diff --git a/horde/templates/portal/layout.inc b/horde/templates/portal/layout.inc index c1033e1fa..3587badd4 100644 --- a/horde/templates/portal/layout.inc +++ b/horde/templates/portal/layout.inc @@ -79,7 +79,7 @@ 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'])) {