[TASK] Remove usage of setForm from EditFileController 46/44446/2
authorJan Helke <typo3@helke.de>
Sat, 31 Oct 2015 16:31:26 +0000 (17:31 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Oct 2015 17:06:55 +0000 (18:06 +0100)
Resolves: #71206
Releases: master
Change-Id: I363a671397aff3c2988f3a2dc86101825a739372
Reviewed-on: https://review.typo3.org/44446
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/backend/Classes/Controller/File/EditFileController.php

index 806ab31..e2ceb30 100644 (file)
@@ -136,10 +136,6 @@ class EditFileController extends AbstractModule
                                top.goToModule("file_FilelistList");
                        }'
         );
-        $this->moduleTemplate->setForm(
-            '<form action="'
-            . htmlspecialchars(BackendUtility::getModuleUrl('tce_file')) . '" method="post" name="editform">'
-        );
     }
 
     /**
@@ -164,7 +160,8 @@ class EditFileController extends AbstractModule
             }
         }
 
-        $pageContent = '<h1>'
+        $pageContent = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('tce_file')) . '" method="post" id="EditFileController" name="editform">';
+        $pageContent .= '<h1>'
             . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:file_edit.php.pagetitle')
             . ' ' . htmlspecialchars($this->fileObject->getName()) . '</h1>';
 
@@ -214,6 +211,7 @@ class EditFileController extends AbstractModule
                 }
             }
         }
+        $pageContent .= '</form>';
         $this->content = $pageContent;
 
         $this->moduleTemplate->setContent($this->content);