[BUGFIX] Language labels taken from wrong language file 55/28255/7
authorPatrick Broens <patrick@patrickbroens.nl>
Tue, 11 Mar 2014 13:58:46 +0000 (14:58 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Mar 2014 09:21:10 +0000 (10:21 +0100)
The module "Pagetree overview" in Web > Info is showing an empty
selectbox because the language labels for this dropdown are called from
the wrong language file.

This patch changes the calls to the language labels

Change-Id: I791598933704752fd6d5ed0d987f43bde1811452
Resolves: #56762
Releases: 6.2
Reviewed-on: https://review.typo3.org/28255
Reviewed-by: Sebastian Müller
Tested-by: Sebastian Müller
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/frontend/Classes/Controller/PageInformationController.php

index 16ab327..ff8e8ae 100644 (file)
@@ -46,14 +46,14 @@ class PageInformationController extends \TYPO3\CMS\Backend\Module\AbstractFuncti
                global $LANG;
                return array(
                        'pages' => array(
-                               0 => $LANG->getLL('pages_0'),
-                               2 => $LANG->getLL('pages_2'),
-                               1 => $LANG->getLL('pages_1')
+                               0 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:pages_0'),
+                               2 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:pages_2'),
+                               1 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:pages_1')
                        ),
                        'stat_type' => array(
-                               0 => $LANG->getLL('stat_type_0'),
-                               1 => $LANG->getLL('stat_type_1'),
-                               2 => $LANG->getLL('stat_type_2')
+                               0 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:stat_type_0'),
+                               1 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:stat_type_1'),
+                               2 => $LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:stat_type_2')
                        ),
                        'depth' => array(
                                0 => $LANG->getLL('depth_0'),
@@ -90,7 +90,7 @@ class PageInformationController extends \TYPO3\CMS\Backend\Module\AbstractFuncti
                $dblist->start($this->pObj->id, 'pages', 0);
                $dblist->generateList();
                // CSH
-               $theOutput .= $this->pObj->doc->header($LANG->getLL('page_title'));
+               $theOutput = $this->pObj->doc->header($LANG->sL('LLL:EXT:cms/web_info/locallang.xlf:page_title'));
                $theOutput .= $this->pObj->doc->section('', BackendUtility::cshItem($dblist->descrTable, 'pagetree_overview', $GLOBALS['BACK_PATH'], '|<br />') . $h_func . $dblist->HTMLcode, 0, 1);
                // Additional footer content
                $footerContentHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/web_info/class.tx_cms_webinfo.php']['drawFooterHook'];