Skip to content
Snippets Groups Projects
Commit b385c325 authored by Jan Helke's avatar Jan Helke Committed by Morton Jonuschat
Browse files

[TASK] Remove usage of setForm from FileUploadController

Resolves: #71207
Releases: master
Change-Id: I4bab35c09c2ffbfab053daee2caecc2dc7c20b55
Reviewed-on: https://review.typo3.org/44447


Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
parent 7e4d2331
No related branches found
No related tags found
No related merge requests found
......@@ -116,11 +116,6 @@ class FileUploadController extends AbstractModule
'combined_identifier' => $this->folderObject->getCombinedIdentifier(),
];
$this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($pathInfo);
// set form tag
$this->moduleTemplate->setForm('<form action="'
. htmlspecialchars(BackendUtility::getModuleUrl('tce_file'))
. '" method="post" name="editform" enctype="multipart/form-data">');
}
/**
......@@ -135,8 +130,11 @@ class FileUploadController extends AbstractModule
// set page title
$this->moduleTemplate->setTitle($lang->sL('LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle'));
$pageContent = '<form action="'
. htmlspecialchars(BackendUtility::getModuleUrl('tce_file'))
. '" method="post" id="FileUploadController" name="editform" enctype="multipart/form-data">';
// Make page header:
$pageContent = '<h1>' . $lang->sL('LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle') . '</h1>';
$pageContent .= '<h1>' . $lang->sL('LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle') . '</h1>';
$pageContent .= $this->renderUploadForm();
// Header Buttons
......@@ -157,6 +155,7 @@ class FileUploadController extends AbstractModule
$buttonBar->addButton($backButton);
}
$pageContent .= '</form>';
$this->content .= $this->moduleTemplate->section('', $pageContent);
$this->moduleTemplate->setContent($this->content);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment