summaryrefslogtreecommitdiff
path: root/app/Controller/IndividualController.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-09-09 17:55:10 +0100
committerGreg Roach <fisharebest@gmail.com>2017-09-09 17:55:10 +0100
commitf9e6fd40c9b1196453317721786a524f20c06652 (patch)
tree0f7366cff0dda097b1d395d353620a5c067266e5 /app/Controller/IndividualController.php
parente013c5cbdf548f226eefdc97188b91e6eb126589 (diff)
downloadwebtrees-f9e6fd40c9b1196453317721786a524f20c06652.tar.gz
webtrees-f9e6fd40c9b1196453317721786a524f20c06652.tar.bz2
webtrees-f9e6fd40c9b1196453317721786a524f20c06652.zip
Add re-order media link to main menu. Fix missing icon
Diffstat (limited to 'app/Controller/IndividualController.php')
-rw-r--r--app/Controller/IndividualController.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Controller/IndividualController.php b/app/Controller/IndividualController.php
index bf78d77769..a5a73becca 100644
--- a/app/Controller/IndividualController.php
+++ b/app/Controller/IndividualController.php
@@ -284,11 +284,15 @@ class IndividualController extends GedcomRecordController {
}
if (count($this->record->getSpouseFamilies()) > 1) {
- $menu->addSubmenu(new Menu(I18N::translate('Re-order families'), 'edit_interface.php?action=reorder-spouses&amp;ged=' . $this->record->getTree()->getNameHtml() . '&amp;xref=' . $this->record->getXref(), 'menu-indi-orderfam'));
+ $menu->addSubmenu(new Menu(I18N::translate('Re-order families'), 'edit_interface.php?action=reorder-spouses&amp;ged=' . $this->record->getTree()->getNameHtml() . '&amp;xref=' . $this->record->getXref(), 'menu-indi-reorder-families'));
}
if (count($this->record->getFacts('NAME')) > 1 || count($this->record->getFacts('TITL')) > 1) {
- $menu->addSubmenu(new Menu(I18N::translate('Re-order names'), 'edit_interface.php?action=reorder-names&amp;ged=' . $this->record->getTree()->getNameHtml() . '&amp;xref=' . $this->record->getXref(), 'menu-indi-ordername'));
+ $menu->addSubmenu(new Menu(I18N::translate('Re-order names'), 'edit_interface.php?action=reorder-names&amp;ged=' . $this->record->getTree()->getNameHtml() . '&amp;xref=' . $this->record->getXref(), 'menu-indi-reorder-names'));
+ }
+
+ if (count($this->record->getFacts('OBJE')) > 1) {
+ $menu->addSubmenu(new Menu(I18N::translate('Re-order media'), 'edit_interface.php?action=reorder-media&amp;ged=' . $this->record->getTree()->getNameHtml() . '&amp;xref=' . $this->record->getXref(), 'menu-indi-reorder-media'));
}
// delete