[TASK] Cleanup sysext "wizard_crpages" and "wizard_sortpages" 20/18820/2
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 18 Feb 2013 20:47:09 +0000 (21:47 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 13 Mar 2013 23:05:11 +0000 (00:05 +0100)
This is a non-functional change that reformats the code, removes
unnecessary empty lines and fixes reference to old classnames.

Furthermore change "0" to FALSE where a boolean is needed.

Change-Id: Ida0c80ce0c54c6054e248b29c716b740f5e65194
Resolves: #46143
Releases: 6.1
Reviewed-on: https://review.typo3.org/18820
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php
typo3/sysext/wizard_crpages/ext_tables.php
typo3/sysext/wizard_sortpages/Classes/View/SortPagesWizardModuleFunction.php
typo3/sysext/wizard_sortpages/ext_tables.php

index 305fe35..e049976 100755 (executable)
@@ -2,8 +2,18 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-if (TYPO3_MODE == 'BE') {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_func', 'TYPO3\\CMS\\WizardCrpages\\Controller\\CreatePagesWizardModuleFunctionController', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_wizardcrpages_webfunc_2.php', 'LLL:EXT:wizard_crpages/locallang.php:wiz_crMany', 'wiz');
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_crpages/locallang_csh.xml');
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_func',
+               'TYPO3\\CMS\\WizardCrpages\\Controller\\CreatePagesWizardModuleFunctionController',
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Controller/CreatePagesWizardModuleFunctionController.php',
+               'LLL:EXT:wizard_crpages/locallang.xlf:wiz_crMany',
+               'wiz'
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
+               '_MOD_web_func',
+               'EXT:wizard_crpages/locallang_csh.xlf'
+       );
 }
 ?>
\ No newline at end of file
index 9d9f89c..5069d6c 100644 (file)
@@ -26,6 +26,7 @@ namespace TYPO3\CMS\WizardSortpages\View;
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Creates the "Sort pages" wizard
  *
@@ -63,9 +64,9 @@ class SortPagesWizardModuleFunction extends \TYPO3\CMS\Backend\Module\AbstractFu
                        if ($sortByField) {
                                $menuItems = array();
                                if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList('title,subtitle,crdate,tstamp', $sortByField)) {
-                                       $menuItems = $sys_pages->getMenu($this->pObj->id, 'uid,pid,title', $sortByField, '', 0);
+                                       $menuItems = $sys_pages->getMenu($this->pObj->id, 'uid,pid,title', $sortByField, '', FALSE);
                                } elseif ($sortByField == 'REV') {
-                                       $menuItems = $sys_pages->getMenu($this->pObj->id, 'uid,pid,title', 'sorting', '', 0);
+                                       $menuItems = $sys_pages->getMenu($this->pObj->id, 'uid,pid,title', 'sorting', '', FALSE);
                                        $menuItems = array_reverse($menuItems);
                                }
                                if (count($menuItems)) {
@@ -81,7 +82,7 @@ class SortPagesWizardModuleFunction extends \TYPO3\CMS\Backend\Module\AbstractFu
                                        \TYPO3\CMS\Backend\Utility\BackendUtility::setUpdateSignal('updatePageTree');
                                }
                        }
-                       $menuItems = $sys_pages->getMenu($this->pObj->id, '*', 'sorting', '', 0);
+                       $menuItems = $sys_pages->getMenu($this->pObj->id, '*', 'sorting', '', FALSE);
 
                        if (count($menuItems)) {
                                $lines = array();
index 507cd74..9c07c49 100755 (executable)
@@ -2,8 +2,17 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-if (TYPO3_MODE == 'BE') {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_func', 'TYPO3\\CMS\\WizardSortPages\\View\\SortPagesWizardModuleFunction', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_wizardsortpages_webfunc_2.php', 'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort', 'wiz');
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xml');
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+               'web_func',
+               'TYPO3\\CMS\\WizardSortPages\\View\\SortPagesWizardModuleFunction',
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/View/SortPagesWizardModuleFunction.php',
+               'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort',
+               'wiz'
+       );
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
+               '_MOD_web_func',
+               'EXT:wizard_sortpages/locallang_csh.xlf'
+       );
 }
 ?>
\ No newline at end of file