From e0a4bbc6ba37fe5507ca06a6c16e90b0ae04cccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helmut=20Schottm=C3=BCller?= Date: Fri, 22 Nov 2024 08:44:59 +0100 Subject: [PATCH] Fixed old-style extraction of URL params --- src/Resources/contao/classes/TagHelper.php | 14 +++++++------- src/Resources/contao/modules/ModuleTagCloud.php | 2 +- src/Resources/contao/modules/ModuleTagScope.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Resources/contao/classes/TagHelper.php b/src/Resources/contao/classes/TagHelper.php index 0bff727..0945d07 100644 --- a/src/Resources/contao/classes/TagHelper.php +++ b/src/Resources/contao/classes/TagHelper.php @@ -80,21 +80,21 @@ public function deleteUnusedTags() } } - public static function getSavedURLParams($objInput) + public static function getSavedURLParams() { $strParams = ''; $arrParams = array(); - if (strlen($objInput->get('year'))) + if (strlen(Input::get('year'))) { - \array_push($arrParams, 'year=' . $objInput->get('year')); + \array_push($arrParams, 'year=' . Input::get('year')); } - if (strlen($objInput->get('month'))) + if (strlen(Input::get('month'))) { - \array_push($arrParams, 'month=' . $objInput->get('month')); + \array_push($arrParams, 'month=' . Input::get('month')); } - if (strlen($objInput->get('day'))) + if (strlen(Input::get('day'))) { - \array_push($arrParams, 'day=' . $objInput->get('day')); + \array_push($arrParams, 'day=' . Input::get('day')); } if (count($arrParams)) { diff --git a/src/Resources/contao/modules/ModuleTagCloud.php b/src/Resources/contao/modules/ModuleTagCloud.php index 97d1042..5d3f60a 100644 --- a/src/Resources/contao/modules/ModuleTagCloud.php +++ b/src/Resources/contao/modules/ModuleTagCloud.php @@ -113,7 +113,7 @@ protected function showTags() if ($this->keep_url_params) { - $strParams = TagHelper::getSavedURLParams($this->Input); + $strParams = TagHelper::getSavedURLParams(); } $relatedlist = (strlen(TagHelper::decode(Input::get('related')))) ? preg_split("/,/", TagHelper::decode(Input::get('related'))) : array(); diff --git a/src/Resources/contao/modules/ModuleTagScope.php b/src/Resources/contao/modules/ModuleTagScope.php index 0ca1cba..8aaeced 100644 --- a/src/Resources/contao/modules/ModuleTagScope.php +++ b/src/Resources/contao/modules/ModuleTagScope.php @@ -74,7 +74,7 @@ protected function compile() $strParams = ''; if ($this->keep_url_params) { - $strParams = TagHelper::getSavedURLParams($this->Input); + $strParams = TagHelper::getSavedURLParams(); } $tagurls = array(); foreach ($this->arrTags as $idx => $tag)