diff options
| 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 |
| commit | 73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72 (patch) | |
| tree | f832471c20ffce15b71e7c3bd05a4f4538badce1 /modules/review_changes/module.php | |
| parent | 891bdebe26e9d78e76ef4257ee93b1ac5470d804 (diff) | |
| download | webtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.tar.gz webtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.tar.bz2 webtrees-73d6f6c4e3a88191fa8aa37148fe5d96da8e6c72.zip | |
#632778 - No config allowed when using blocks in HTML block
Diffstat (limited to 'modules/review_changes/module.php')
| -rw-r--r-- | modules/review_changes/module.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/review_changes/module.php b/modules/review_changes/module.php index 811acb82d6..7e6a1c8f3d 100644 --- a/modules/review_changes/module.php +++ b/modules/review_changes/module.php @@ -44,7 +44,7 @@ class review_changes_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, $QUERY_STRING, $WT_IMAGES, $TEXT_DIRECTION, $WEBTREES_EMAIL, $THEME_DIR; $changes=WT_DB::prepare( @@ -57,6 +57,11 @@ class review_changes_WT_Module extends WT_Module implements WT_Module_Block { $days =get_block_setting($block_id, 'days', 1); $sendmail=get_block_setting($block_id, 'sendmail', true); $block =get_block_setting($block_id, 'block', true); + if ($cfg) { + foreach ($cfg as $name=>$value) { + $$name=$value; + } + } if ($changes) { //-- if the time difference from the last email is greater than 24 hours then send out another email |
