From 6db838db8ce032d1412e671ec60803a87a012449 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 4 Jan 2010 19:17:57 +0100 Subject: [PATCH] We need the parameter values here (Bug #8800). --- framework/Block/lib/Horde/Block.php | 10 ++++++++++ horde/templates/portal/layout.inc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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'])) { -- 2.11.0