diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-12-30 15:05:42 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-12-30 15:05:42 +0000 |
| commit | ecbc6db9fae9112dbb21cd9aedbc3b123979526e (patch) | |
| tree | f762e8db15caa7e9bcb4071a4f58e28a64fa8a1b /modules/yahrzeit | |
| parent | acb9cd4f9a99a53b76ab4787a067583c10da002c (diff) | |
| download | webtrees-ecbc6db9fae9112dbb21cd9aedbc3b123979526e.tar.gz webtrees-ecbc6db9fae9112dbb21cd9aedbc3b123979526e.tar.bz2 webtrees-ecbc6db9fae9112dbb21cd9aedbc3b123979526e.zip | |
Use constant WT_THEME_DIR instead of global variable $THEME_DIR
Diffstat (limited to 'modules/yahrzeit')
| -rw-r--r-- | modules/yahrzeit/module.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/yahrzeit/module.php b/modules/yahrzeit/module.php index 9e667799a2..93d3dc0a90 100644 --- a/modules/yahrzeit/module.php +++ b/modules/yahrzeit/module.php @@ -45,7 +45,7 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function getBlock($block_id, $template=true, $cfg=null) { - global $ctype, $TEXT_DIRECTION, $WT_IMAGES, $SHOW_MARRIED_NAMES, $THEME_DIR; + global $ctype, $TEXT_DIRECTION, $WT_IMAGES, $SHOW_MARRIED_NAMES; $days=get_block_setting($block_id, 'days', 7); $infoStyle=get_block_setting($block_id, 'infoStyle', 'table'); @@ -201,9 +201,9 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block { if ($template) { if ($block) { - require $THEME_DIR.'templates/block_small_temp.php'; + require WT_THEME_DIR.'templates/block_small_temp.php'; } else { - require $THEME_DIR.'templates/block_main_temp.php'; + require WT_THEME_DIR.'templates/block_main_temp.php'; } } else { return $content; |
