[TASK] Remove documentTemplate sections at InfoPageTyposcriptConfigCon 99/44399/4
authorRuud Silvrants <ruudsilvrants@gmail.com>
Fri, 30 Oct 2015 13:31:00 +0000 (14:31 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Oct 2015 16:36:14 +0000 (17:36 +0100)
Remove documentTemplate sections calls for
InfoPageTyposcriptConfigController

Resolves: #71168
Releases: master
Change-Id: I07b5f103b9268999c620194f1963cd610e12e7ae
Reviewed-on: https://review.typo3.org/44399
Reviewed-by: Gernot Schulmeister <gernotschulmeister@gmx.at>
Tested-by: Gernot Schulmeister <gernotschulmeister@gmx.at>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php

index 1b46bd2..aac4a9f 100644 (file)
@@ -82,9 +82,7 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
     {
         if ((int)(GeneralUtility::_GP('id')) === 0) {
             $lang = $this->getLanguageService();
-            return $this->pObj->doc->section(
-                '',
-                '<div class="nowrap"><div class="table-fit"><table class="table table-striped table-hover" id="tsconfig-overview">' .
+            return '<div class="nowrap"><div class="table-fit"><table class="table table-striped table-hover" id="tsconfig-overview">' .
                 '<thead>' .
                 '<tr>' .
                 '<th>' . $lang->getLL('pagetitle') . '</th>' .
@@ -93,10 +91,7 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                 '</tr>' .
                 '</thead>' .
                 '<tbody>' . implode('', $this->getOverviewOfPagesUsingTSConfig()) . '</tbody>' .
-                '</table></div>',
-                0,
-                1
-            );
+                '</table></div>';
         } else {
             $menu = '<div class="form-inline form-inline-spaced">';
             $menu .= BackendUtility::getDropdownMenu($this->pObj->id, 'SET[tsconf_parts]', $this->pObj->MOD_SETTINGS['tsconf_parts'], $this->pObj->MOD_MENU['tsconf_parts']);
@@ -156,9 +151,12 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                 } else {
                     $editIcon = '';
                 }
-                $theOutput .= $this->pObj->doc->section('', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null) . $menu . '
+                $theOutput .= '<div>';
+                $theOutput .= BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null) . $menu . '
                                                <!-- Edit fields: -->
-                                               <table border="0" cellpadding="0" cellspacing="1">' . implode('', $lines) . '</table><br />' . $editIcon, 0, 1);
+                                               <table border="0" cellpadding="0" cellspacing="1">' . implode('', $lines) . '</table><br />' . $editIcon;
+                $theOutput .= '</div>';
+
             } else {
                 // Defined global here!
                 $tmpl = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\ExtendedTemplateService::class);
@@ -224,14 +222,9 @@ class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\Abstr
                 $csh = BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', null);
                 $tree = $tmpl->ext_getObjTree($modTSconfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort']);
 
-                $theOutput .= $this->pObj->doc->section(
-                    '',
-                    $csh .
-                    $menu .
-                    '<div class="nowrap">' . $tree . '</div>',
-                    0,
-                    1
-                );
+                $theOutput .= '<div>';
+                $theOutput .= $csh . $menu . '<div class="nowrap">' . $tree . '</div>';
+                $theOutput .= '</div>';
             }
         }