diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-03-07 11:33:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-03-08 16:23:35 +0000 |
| commit | 4b9ff166b3342695f2a94855b7a33368e6d55c35 (patch) | |
| tree | 0a1c31662df08206dbd7d04fe6983f438f4e6877 /app/Module/UpcomingAnniversariesModule.php | |
| parent | 1784a549f5382ce854e7a2b015c1367735d8b2e0 (diff) | |
| download | webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.gz webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.bz2 webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.zip | |
Remove constants, to improve multi-tree handling
Diffstat (limited to 'app/Module/UpcomingAnniversariesModule.php')
| -rw-r--r-- | app/Module/UpcomingAnniversariesModule.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Module/UpcomingAnniversariesModule.php b/app/Module/UpcomingAnniversariesModule.php index 708cb6686b..6743219503 100644 --- a/app/Module/UpcomingAnniversariesModule.php +++ b/app/Module/UpcomingAnniversariesModule.php @@ -32,7 +32,7 @@ class UpcomingAnniversariesModule extends Module implements ModuleBlockInterface /** {@inheritdoc} */ public function getBlock($block_id, $template = true, $cfg = null) { - global $ctype; + global $ctype, $WT_TREE; $days = get_block_setting($block_id, 'days', '7'); $filter = get_block_setting($block_id, 'filter', '1'); @@ -54,7 +54,7 @@ class UpcomingAnniversariesModule extends Module implements ModuleBlockInterface $id = $this->getName() . $block_id; $class = $this->getName() . '_block'; - if ($ctype === 'gedcom' && WT_USER_GEDCOM_ADMIN || $ctype === 'user' && Auth::check()) { + if ($ctype === 'gedcom' && Auth::isManager($WT_TREE) || $ctype === 'user' && Auth::check()) { $title = '<i class="icon-admin" title="' . I18N::translate('Configure') . '" onclick="modalDialog(\'block_edit.php?block_id=' . $block_id . '\', \'' . $this->getTitle() . '\');"></i>'; } else { $title = ''; |
