diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-07-28 16:20:15 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-07-28 16:20:15 +0000 |
| commit | ded8f7da37dda5143a56b006e3cd2b64e9d5ca8e (patch) | |
| tree | 4e87e1057a122269f86b08cfa7e475d2cea97bb0 /library/WT/MenuBar.php | |
| parent | df82320540b2e7e10aae81ed2eef888b3de8977c (diff) | |
| download | webtrees-ded8f7da37dda5143a56b006e3cd2b64e9d5ca8e.tar.gz webtrees-ded8f7da37dda5143a56b006e3cd2b64e9d5ca8e.tar.bz2 webtrees-ded8f7da37dda5143a56b006e3cd2b64e9d5ca8e.zip | |
Relationship charts - links the wrong way round.
Diffstat (limited to 'library/WT/MenuBar.php')
| -rw-r--r-- | library/WT/MenuBar.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/WT/MenuBar.php b/library/WT/MenuBar.php index 3ff9254e35..e023554e88 100644 --- a/library/WT/MenuBar.php +++ b/library/WT/MenuBar.php @@ -309,8 +309,8 @@ class WT_MenuBar { case 'relationship': if ($rootid) { // Pages focused on a specific person - from the person, to me - $pid1=$rootid; - $pid2=WT_USER_GEDCOM_ID ? WT_USER_GEDCOM_ID : WT_USER_ROOT_ID; + $pid1=WT_USER_GEDCOM_ID ? WT_USER_GEDCOM_ID : WT_USER_ROOT_ID; + $pid2=$rootid; if ($pid1==$pid2) { $pid2=''; } @@ -329,8 +329,8 @@ class WT_MenuBar { if ($person instanceof WT_Person) { $subsubmenu = new WT_Menu( $person->getFullName(), - 'relationship.php?pid1='.$pid1.'&pid2='.$person->getXref().'&pretty=2&followspouse=1&ged='.WT_GEDURL, - 'menu-chart-relationship-'.$person->getGedId().'-'.$person->getXref() // We don't use these, but a custom theme might + 'relationship.php?pid1='.$person->getXref().'&pid2='.$pid2.'&pretty=2&followspouse=1&ged='.WT_GEDURL, + 'menu-chart-relationship-'.$person->getXref().'-'.$pid2 // We don't use these, but a custom theme might ); $subsubmenu->addIcon('relationship'); $subsubmenu->addClass('submenuitem', 'submenuitem_hover', '', 'icon_small_relationship'); |
