--- tslib/class.tslib_menu.reference.php 2005-01-22 11:39:44.000000000 +0100 +++ tslib/class.tslib_menu.php 2005-01-22 11:38:04.000000000 +0100 @@ -861,10 +861,12 @@ // Continue if token is true: if ($tok) { + // Checking if "&L" should be modified so links to non-accessible pages will not happen. if ($this->conf['protectLvar']) { $Lvar = intval(t3lib_div::_GP('L')); - if (($this->conf['protectLvar']=='all' || $data['l18n_cfg']&2) && $Lvar!=$GLOBALS['TSFE']->sys_language_uid) { // page cannot be access in locaization and Lvar is different than sys_language uid - this means we must check! +// if (($this->conf['protectLvar']=='all' || $data['l18n_cfg']&2) && $Lvar!=$GLOBALS['TSFE']->sys_language_uid) { // page cannot be access in locaization and Lvar is different than sys_language uid - this means we must check! + if ($this->conf['protectLvar']=='all' || $data['l18n_cfg']&2) { // page cannot be accessed in localization or we shall always check $olRec = $GLOBALS['TSFE']->sys_page->getPageOverlay($data['uid'], $Lvar); if (!count($olRec)) { // If no pages_language_overlay record then page can NOT be accessed in the language pointed to by "&L" and therefore we protect the link by setting "&L=0" @@ -2677,4 +2679,4 @@ include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_menu.php']); } -?> \ No newline at end of file +?>