Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Filter::get() and Filter::post() has been replaced with $request by w…
…ebtrees
  • Loading branch information
JustCarmen committed Sep 9, 2018
1 parent 0054c72 commit 03b14ce
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/Theme/JustBaseTheme.php
Expand Up @@ -15,7 +15,6 @@
*/
namespace JustCarmen\WebtreesThemes\JustBlack\Theme;

use Fisharebest\Webtrees\Filter;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Menu;
Expand Down Expand Up @@ -70,14 +69,14 @@ public function fancyImagebar() {
* @return string
*/
public function getThemeGlobalClass() {
$class = ' jc-global-' . Filter::get('route');
$class = ' jc-global-' . $this->request->get('route');

$module = Filter::get('module');
$module = $this->request->get('module');
if ($module) {
$class .= '-' . $module;
}

if (strpos(Filter::get('route'), '-list') !== false && Filter::get('route') !== 'media-list') {
if (strpos($this->request->get('route'), '-list') !== false && $this->request->get('route') !== 'media-list') {
$class .= ' jc-global-list';
}
return $class;
Expand Down Expand Up @@ -152,7 +151,7 @@ public function parameter($parameter_name) {
'image-vline' => $path . 'vline.png'
];

if (Filter::get('route') === 'pedigree' && (Filter::getInteger('orientation') === 2 || Filter::getInteger('orientation') === 3)) {
if ($this->request->get('route') === 'pedigree' && ($this->request->get('orientation') === 2 || $this->request->get('orientation') === 3)) {
$parameters['compact-chart-box-x'] = 90;
$parameters['compact-chart-box-y'] = 120;
}
Expand Down

0 comments on commit 03b14ce

Please sign in to comment.