summaryrefslogtreecommitdiff
path: root/app/Module/IndividualFamiliesReportModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-03-07 11:33:29 +0000
committerGreg Roach <fisharebest@gmail.com>2015-03-08 16:23:35 +0000
commit4b9ff166b3342695f2a94855b7a33368e6d55c35 (patch)
tree0a1c31662df08206dbd7d04fe6983f438f4e6877 /app/Module/IndividualFamiliesReportModule.php
parent1784a549f5382ce854e7a2b015c1367735d8b2e0 (diff)
downloadwebtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.gz
webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.bz2
webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.zip
Remove constants, to improve multi-tree handling
Diffstat (limited to 'app/Module/IndividualFamiliesReportModule.php')
-rw-r--r--app/Module/IndividualFamiliesReportModule.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Module/IndividualFamiliesReportModule.php b/app/Module/IndividualFamiliesReportModule.php
index 0db386d8ed..70088554c5 100644
--- a/app/Module/IndividualFamiliesReportModule.php
+++ b/app/Module/IndividualFamiliesReportModule.php
@@ -34,17 +34,17 @@ class IndividualFamiliesReportModule extends Module implements ModuleReportInter
/** {@inheritdoc} */
public function defaultAccessLevel() {
- return WT_PRIV_USER;
+ return Auth::PRIV_USER;
}
/** {@inheritdoc} */
public function getReportMenus() {
- global $controller;
+ global $controller, $WT_TREE;
$menus = array();
$menu = new Menu(
$this->getTitle(),
- 'reportengine.php?ged=' . WT_GEDURL . '&amp;action=setup&amp;report=' . WT_MODULES_DIR . $this->getName() . '/report.xml&amp;pid=' . $controller->getSignificantIndividual()->getXref(),
+ 'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&amp;action=setup&amp;report=' . WT_MODULES_DIR . $this->getName() . '/report.xml&amp;pid=' . $controller->getSignificantIndividual()->getXref(),
'menu-report-' . $this->getName()
);
$menus[] = $menu;