diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-09-09 17:55:10 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-09-09 17:55:10 +0100 |
| commit | f9e6fd40c9b1196453317721786a524f20c06652 (patch) | |
| tree | 0f7366cff0dda097b1d395d353620a5c067266e5 /app/Controller/IndividualController.php | |
| parent | e013c5cbdf548f226eefdc97188b91e6eb126589 (diff) | |
| download | webtrees-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.php | 8 |
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&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-indi-orderfam')); + $menu->addSubmenu(new Menu(I18N::translate('Re-order families'), 'edit_interface.php?action=reorder-spouses&ged=' . $this->record->getTree()->getNameHtml() . '&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&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-indi-ordername')); + $menu->addSubmenu(new Menu(I18N::translate('Re-order names'), 'edit_interface.php?action=reorder-names&ged=' . $this->record->getTree()->getNameHtml() . '&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&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-indi-reorder-media')); } // delete |
