[BUGFIX] Minor changes for TYPO3 6.2 support 56/25656/2
authorNicole Cordes <cordes@cps-it.de>
Sat, 23 Nov 2013 02:23:52 +0000 (03:23 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 23 Nov 2013 02:27:38 +0000 (03:27 +0100)
Change-Id: Ic38f4c34496ed0bdda44310f4e34c3fa9458b9eb
Reviewed-on: https://review.typo3.org/25656
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
pi1/class.tx_tipafriendplus_pi1_wizicon.php

index 4d6e845..cf48367 100644 (file)
@@ -39,31 +39,15 @@ class tx_tipafriendplus_pi1_wizicon {
         * @return array Modified array with wizard items
         */
        function proc($wizardItems) {
-               global $LANG;
-
-               $LL = $this->includeLocalLang();
-
                $wizardItems['plugins_tx_tipafriendplus_pi1'] = array(
                        'icon' => t3lib_extMgm::extRelPath('tipafriend_plus') . 'pi1/ce_wiz.gif',
-                       'title' => $LANG->getLLL('pi1_title', $LL),
-                       'description' => $LANG->getLLL('pi1_plus_wiz_description', $LL),
+                       'title' => $GLOBALS['LANG']->sL('LLL:EXT:tipafriend_plus/locallang.xml:pi1_title'),
+                       'description' => $GLOBALS['LANG']->sL('LLL:EXT:tipafriend_plus/locallang.xml:pi1_plus_wiz_description'),
                        'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=tipafriend_plus_pi1'
                );
 
                return $wizardItems;
        }
-
-       /**
-        * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
-        *
-        * @return array The array with language labels
-        */
-       function includeLocalLang() {
-               $llFile = t3lib_extMgm::extPath('tipafriend_plus') . 'locallang.xml';
-               $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
-
-               return $LOCAL_LANG;
-       }
 }
 
 if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tipafriend_plus/pi1/class.tx_tipafriendplus_pi1_wizicon.php']) {