Skip to content
Snippets Groups Projects
Commit 8e7e3a24 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Remove sys_language_uid from pages where-clause in 8 LTS

parent 72099d4b
No related branches found
No related tags found
2 merge requests!13Feature remove sg news ajax plugin,!8Feature upgrade to9 lts
......@@ -90,9 +90,13 @@ class BackendNewsUtility {
*/
public static function getAlternativePageOptions(): array {
$options = [];
$andWhere = ' AND sys_language_uid IN (0,-1)';
if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.0.0', '<')) {
$andWhere = '';
}
/** @var array $rootOptionRows */
$rootOptionRows = self::getRecordsByField(
'pages', 'is_siteroot', 1, ' AND sys_language_uid IN (0,-1)', '', 'sorting'
'pages', 'is_siteroot', 1, $andWhere, '', 'sorting'
);
if ($rootOptionRows) {
foreach ($rootOptionRows as $row) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment