diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-16 21:59:08 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-16 21:59:08 +0000 |
| commit | b9bb8ea33d62189c30d40456cb4550a5d4b3e5b2 (patch) | |
| tree | b19b32487da9d4d1c627b8df357bf09ad0ae6c7b /library/WT/Controller | |
| parent | 41ad8fa957e59c44918e076c17ea7b6e23dfcf61 (diff) | |
| download | webtrees-b9bb8ea33d62189c30d40456cb4550a5d4b3e5b2.tar.gz webtrees-b9bb8ea33d62189c30d40456cb4550a5d4b3e5b2.tar.bz2 webtrees-b9bb8ea33d62189c30d40456cb4550a5d4b3e5b2.zip | |
Refactor - no longer need WT_GedcomRecord::equals() - can use "=="
Diffstat (limited to 'library/WT/Controller')
| -rw-r--r-- | library/WT/Controller/Fanchart.php | 2 | ||||
| -rw-r--r-- | library/WT/Controller/Individual.php | 3 | ||||
| -rw-r--r-- | library/WT/Controller/Lifespan.php | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/library/WT/Controller/Fanchart.php b/library/WT/Controller/Fanchart.php index c841dddad7..e09d183db2 100644 --- a/library/WT/Controller/Fanchart.php +++ b/library/WT/Controller/Fanchart.php @@ -335,7 +335,7 @@ class WT_Controller_Fanchart extends WT_Controller_Chart { $html.= '<br><span class="name1">'.WT_I18N::translate('Sibling').'</span>'; } foreach ($children as $sibling) { - if (!$sibling->equals($person)) { + if ($sibling == $person) { $html.= '<br> <a href="'.$sibling->getHtmlUrl().'" class="name1"> '.$sibling->getFullName().'</a>'; } } diff --git a/library/WT/Controller/Individual.php b/library/WT/Controller/Individual.php index 8dc0fc4b1c..fccbe8e45f 100644 --- a/library/WT/Controller/Individual.php +++ b/library/WT/Controller/Individual.php @@ -326,9 +326,6 @@ class WT_Controller_Individual extends WT_Controller_GedcomRecord { return $menu; } - function add_asso_facts() { - } - /** * get the person box stylesheet class * for the given person diff --git a/library/WT/Controller/Lifespan.php b/library/WT/Controller/Lifespan.php index 5412b60e95..0271965738 100644 --- a/library/WT/Controller/Lifespan.php +++ b/library/WT/Controller/Lifespan.php @@ -221,7 +221,7 @@ class WT_Controller_Lifespan extends WT_Controller_Page { $this->pids[]=$parent->getXref(); } foreach ($family->getChildren() as $sibling) { - if (!$person->equals($sibling)) { + if ($person != $sibling) { $this->pids[]=$sibling->getXref(); } } |
