summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-06-19 10:50:24 +0100
committerGreg Roach <fisharebest@gmail.com>2015-06-19 10:51:16 +0100
commit237975cc190491a79b446ae30c59a9773b5ccc3e (patch)
tree13aae94ba9e51100bedb262ecda6baf9c507cc91 /app/Controller
parent82cab8de4ab7ed08a6ab1d6f239f1702961ff4d9 (diff)
downloadwebtrees-237975cc190491a79b446ae30c59a9773b5ccc3e.tar.gz
webtrees-237975cc190491a79b446ae30c59a9773b5ccc3e.tar.bz2
webtrees-237975cc190491a79b446ae30c59a9773b5ccc3e.zip
Fix #622 - GET/POST
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/LifespanController.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Controller/LifespanController.php b/app/Controller/LifespanController.php
index 815663bbca..7b128ce975 100644
--- a/app/Controller/LifespanController.php
+++ b/app/Controller/LifespanController.php
@@ -122,14 +122,14 @@ class LifespanController extends PageController {
$filterPids = false;
// Request parameters
- $clear = Filter::postBool('clear');
- $newpid = Filter::post('newpid', WT_REGEX_XREF);
- $addfam = Filter::postBool('addFamily');
- $this->place = Filter::post('place');
- $this->beginYear = Filter::postInteger('beginYear', 0, PHP_INT_MAX, null);
- $this->endYear = Filter::postInteger('endYear', 0, PHP_INT_MAX, null);
- $this->calendar = Filter::post('calendar', null, $this->defaultCalendar);
- $this->strictDate = Filter::postBool('strictDate');
+ $clear = Filter::getBool('clear');
+ $newpid = Filter::get('newpid', WT_REGEX_XREF);
+ $addfam = Filter::getBool('addFamily');
+ $this->place = Filter::get('place');
+ $this->beginYear = Filter::getInteger('beginYear', 0, PHP_INT_MAX, null);
+ $this->endYear = Filter::getInteger('endYear', 0, PHP_INT_MAX, null);
+ $this->calendar = Filter::get('calendar', null, $this->defaultCalendar);
+ $this->strictDate = Filter::getBool('strictDate');
// Set up base color parameters
$this->colors['M'] = new ColorGenerator(240, self::SATURATION, self::LIGHTNESS, self::ALPHA, self::RANGE * -1);