Skip to content

Commit

Permalink
Fix error: Wrong year calculated.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed Jan 3, 2017
1 parent f58ea28 commit ab7c7ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/missingtombstones/TombstoneSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ private static function personHasTombstone($person) {
/**
* Perform the search
*
* @param $numYearsPast
* The number of years where headstones are expected to be removed.
* Defaults to 30 years.
* @return array of individuals.
*/
public function advancedSearch($startyear = null) {
public function advancedSearch($numYearsPast = 30) {
global $WT_TREE;

if (empty($startyear)) {
$startyear = date("Y") - 30;
}
$startyear = date("Y") - $numYearsPast;

$myindilist = array();
$bind = array();
Expand Down
2 changes: 1 addition & 1 deletion src/missingtombstones/language/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: webtrees-missingtombstones 1.0\n"
"Report-Msgid-Bugs-To: bmarwell@gmail.com\n"
"POT-Creation-Date: 2017-01-02 09:54+0100\n"
"POT-Creation-Date: 2017-01-03 09:31+0100\n"
"PO-Revision-Date: 2017-01-02 09:49+0100\n"
"Last-Translator: Benjamin Marwell <bmarwell+blog@gmail.com>\n"
"Language-Team: \n"
Expand Down

0 comments on commit ab7c7ba

Please sign in to comment.