[BUGFIX] Readd missing initialisation of $tsfe 52/58252/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 11 Sep 2018 17:39:04 +0000 (19:39 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 12 Sep 2018 05:02:11 +0000 (07:02 +0200)
During the refactoring of #85543 a line too much has been removed.
Readd the initialisation of $tsfe.

Resolves: #86223
Releases: master
Change-Id: Icd7bf93fe1d04e845b4a8cc497f171c7429d0d55
Reviewed-on: https://review.typo3.org/58252
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index b66f71e..19ad6b1 100644 (file)
@@ -1373,6 +1373,7 @@ abstract class AbstractMenuContentObject
                     // Checking if "&L" should be modified so links to non-accessible pages will not happen.
                     if ($this->conf['protectLvar']) {
                         if ($languageId && ($this->conf['protectLvar'] === 'all' || GeneralUtility::hideIfNotTranslated($data['l18n_cfg']))) {
+                            $tsfe = $this->getTypoScriptFrontendController();
                             $olRec = $tsfe->sys_page->getPageOverlay($data['uid'], $languageId);
                             if (empty($olRec)) {
                                 // If no page translation record then page can NOT be accessed in