diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-06-17 23:06:24 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-06-17 23:06:24 +0100 |
| commit | 0ee1319888cc0d02945fb962bd91ef97591f55e4 (patch) | |
| tree | 668476652476a3e78799458dd285a109b2ef0cd5 /app/Module/BirthDeathMarriageReportModule.php | |
| parent | f5b8f12352d4ad8c8d17b426d08d98b849c35ebd (diff) | |
| download | webtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.tar.gz webtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.tar.bz2 webtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.zip | |
Use rel=nofollow instead of hiding links
Diffstat (limited to 'app/Module/BirthDeathMarriageReportModule.php')
| -rw-r--r-- | app/Module/BirthDeathMarriageReportModule.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/app/Module/BirthDeathMarriageReportModule.php b/app/Module/BirthDeathMarriageReportModule.php index 8633cf3605..14ff5e21dd 100644 --- a/app/Module/BirthDeathMarriageReportModule.php +++ b/app/Module/BirthDeathMarriageReportModule.php @@ -55,21 +55,18 @@ class BirthDeathMarriageReportModule extends AbstractModule implements ModuleRep } /** - * Return a list of (usually just one) menu items. + * Return a menu item for this report. * - * @return Menu[] + * @return Menu */ - public function getReportMenus() { + public function getReportMenu() { global $WT_TREE; - $menus = array(); - $menu = new Menu( + return new Menu( $this->getTitle(), 'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&action=setup&report=' . WT_MODULES_DIR . $this->getName() . '/report.xml', - 'menu-report-' . $this->getName() + 'menu-report-' . $this->getName(), + array('rel' => 'nofollow') ); - $menus[] = $menu; - - return $menus; } } |
