summaryrefslogtreecommitdiff
path: root/app/Module/ChangeReportModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-06-17 23:06:24 +0100
committerGreg Roach <fisharebest@gmail.com>2015-06-17 23:06:24 +0100
commit0ee1319888cc0d02945fb962bd91ef97591f55e4 (patch)
tree668476652476a3e78799458dd285a109b2ef0cd5 /app/Module/ChangeReportModule.php
parentf5b8f12352d4ad8c8d17b426d08d98b849c35ebd (diff)
downloadwebtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.tar.gz
webtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.tar.bz2
webtrees-0ee1319888cc0d02945fb962bd91ef97591f55e4.zip
Use rel=nofollow instead of hiding links
Diffstat (limited to 'app/Module/ChangeReportModule.php')
-rw-r--r--app/Module/ChangeReportModule.php25
1 files changed, 16 insertions, 9 deletions
diff --git a/app/Module/ChangeReportModule.php b/app/Module/ChangeReportModule.php
index 5d608ee1a5..6d85929f7d 100644
--- a/app/Module/ChangeReportModule.php
+++ b/app/Module/ChangeReportModule.php
@@ -35,23 +35,30 @@ class ChangeReportModule extends AbstractModule implements ModuleReportInterface
return /* I18N: Description of the “Changes” module */ I18N::translate('A report of recent and pending changes.');
}
- /** {@inheritdoc} */
+ /**
+ * What is the default access level for this module?
+ *
+ * Some modules are aimed at admins or managers, and are not generally shown to users.
+ *
+ * @return int
+ */
public function defaultAccessLevel() {
return Auth::PRIV_USER;
}
- /** {@inheritdoc} */
- public function getReportMenus() {
+ /**
+ * Return a menu item for this report.
+ *
+ * @return Menu
+ */
+ public function getReportMenu() {
global $WT_TREE;
- $menus = array();
- $menu = new Menu(
+ return new Menu(
$this->getTitle(),
'reportengine.php?ged=' . $WT_TREE->getNameUrl() . '&amp;action=setup&amp;report=' . WT_MODULES_DIR . $this->getName() . '/report.xml',
- 'menu-report-' . $this->getName()
+ 'menu-report-' . $this->getName(),
+ array('rel' => 'nofollow')
);
- $menus[] = $menu;
-
- return $menus;
}
}