diff --git a/Classes/Encoder/UrlEncoder.php b/Classes/Encoder/UrlEncoder.php index a6270d99..9172283b 100644 --- a/Classes/Encoder/UrlEncoder.php +++ b/Classes/Encoder/UrlEncoder.php @@ -1602,7 +1602,11 @@ protected function validateLanguageParameter($sysLanguageUid) { addslashes($sysLanguageUid) ); $this->tsfe->set_no_cache($message); - $this->logger->error($message, debug_backtrace()); + $this->logger->error($message); + if (version_compare(TYPO3_version, '7.6.0', '>=')) { + $this->logger->debug($message, debug_backtrace()); + } + throw new InvalidLanguageParameterException($sysLanguageUid); } }