summaryrefslogtreecommitdiff
path: root/modules/yahrzeit
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 /modules/yahrzeit
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 'modules/yahrzeit')
-rw-r--r--modules/yahrzeit/module.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/yahrzeit/module.php b/modules/yahrzeit/module.php
index 57113d45f1..be45a60e1f 100644
--- a/modules/yahrzeit/module.php
+++ b/modules/yahrzeit/module.php
@@ -44,12 +44,17 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block {
}
// Implement class WT_Module_Block
- public function getBlock($block_id, $template=true) {
+ public function getBlock($block_id, $template=true, $cfg=null) {
global $ctype, $TEXT_DIRECTION, $WT_IMAGES, $SHOW_MARRIED_NAMES, $THEME_DIR;
$days=get_block_setting($block_id, 'days', 7);
$infoStyle=get_block_setting($block_id, 'infoStyle', 'table');
$block=get_block_setting($block_id, 'block', true);
+ if ($cfg) {
+ foreach ($cfg as $name=>$value) {
+ $$name=$value;
+ }
+ }
$startjd=WT_CLIENT_JD;
$endjd =WT_CLIENT_JD+$days-1;