From 154b5e7db91486c1e097c84a5b5cb5b4187394ea Mon Sep 17 00:00:00 2001 From: Christian Futterlieb <christian@futterlieb.ch> Date: Fri, 5 May 2017 16:12:22 +0200 Subject: [PATCH] [BUGFIX] Correct typos in AbstractPlugin::pi_list_browseresults() * Add a forgotten '$' * Encapsulate ternary condition before concatenating strings Resolves: #81153 Releases: master, 8.7 Change-Id: I0e180d2115435f0f41fb7b89862ff5d868c4dbd5 Reviewed-on: https://review.typo3.org/52724 Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Jan Helke <typo3@helke.de> Tested-by: Jan Helke <typo3@helke.de> --- typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php b/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php index 5738e7191dc1..13c78d50b94a 100644 --- a/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php +++ b/typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php @@ -603,7 +603,7 @@ class AbstractPlugin $links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($hscText ? htmlspecialchars($label) : $label, [$pointerName => null], $pi_isOnlyFields), $wrapper['inactiveLinkWrap']); } else { $label = $this->pi_getLL('pi_list_browseresults_first', '<< First'); - $links[] = $this->cObj->wrap(hscText ? htmlspecialchars($label) : $label, $wrapper['disabledLinkWrap']); + $links[] = $this->cObj->wrap($hscText ? htmlspecialchars($label) : $label, $wrapper['disabledLinkWrap']); } } // Link to previous page @@ -622,7 +622,7 @@ class AbstractPlugin $pageText = ($a * $results_at_a_time + 1) . '-' . min($count, ($a + 1) * $results_at_a_time); } else { $label = $this->pi_getLL('pi_list_browseresults_page', 'Page'); - $pageText = trim($hscText ? htmlspecialchars($label) : $label . ' ' . ($a + 1)); + $pageText = trim(($hscText ? htmlspecialchars($label) : $label) . ' ' . ($a + 1)); } // Current page if ($pointer == $a) { -- GitLab