summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-09-20 19:03:56 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-09-20 19:03:56 +0000
commit73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72 (patch)
treef832471c20ffce15b71e7c3bd05a4f4538badce1 /includes
parent891bdebe26e9d78e76ef4257ee93b1ac5470d804 (diff)
downloadwebtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.tar.gz
webtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.tar.bz2
webtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.zip
#632778 - No config allowed when using blocks in HTML block
Diffstat (limited to 'includes')
-rw-r--r--includes/classes/class_stats.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/classes/class_stats.php b/includes/classes/class_stats.php
index bdaae699e2..403aedce33 100644
--- a/includes/classes/class_stats.php
+++ b/includes/classes/class_stats.php
@@ -3750,17 +3750,17 @@ class stats_ui extends stats
$class_name = $block.'_WT_Module';
if (class_exists($class_name) && $block!='html') {
// Build the config array
- //array_shift($params);
- //$cfg = array();
- //foreach($params as $config) {
- // $bits = explode('=', $config);
- // if(count($bits) < 2){continue;}
- // $v = array_shift($bits);
- // $cfg[$v] = join('=', $bits);
- //}
+ array_shift($params);
+ $cfg = array();
+ foreach($params as $config) {
+ $bits = explode('=', $config);
+ if(count($bits) < 2){continue;}
+ $v = array_shift($bits);
+ $cfg[$v] = join('=', $bits);
+ }
$block = new $class_name;
$block_id=safe_GET('block_id');
- $content = $block->getBlock($block_id, false);
+ $content = $block->getBlock($block_id, false, $cfg);
return $content;
}
return $block;