[TASK] BACK_PATH DocumentTemplate 12/42312/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 6 Aug 2015 11:30:07 +0000 (13:30 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 6 Aug 2015 12:53:52 +0000 (14:53 +0200)
BACK_PATH in Backend context is always empty string. The patch
removes a couple of simple usages, mostly related to DocumentTemplate.

Resolves: #68790
Releases: master
Change-Id: Ic4897642abf216fbcec430051723bc4b412b321a
Reviewed-on: http://review.typo3.org/42312
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
35 files changed:
typo3/sysext/backend/Classes/Controller/BackendLayoutWizardController.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php
typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/File/EditFileController.php
typo3/sysext/backend/Classes/Controller/File/FileUploadController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/backend/Classes/Controller/File/ReplaceFileController.php
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php
typo3/sysext/backend/Classes/Controller/NewRecordController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Controller/PageTreeNavigationController.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php
typo3/sysext/cshmanual/Classes/Controller/HelpModuleController.php
typo3/sysext/dbal/Classes/Controller/ModuleController.php
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/AbstractBackendViewHelper.php
typo3/sysext/form/Classes/View/Wizard/WizardView.php
typo3/sysext/func/Classes/Controller/PageFunctionsController.php
typo3/sysext/impexp/Classes/Controller/ImportExportController.php
typo3/sysext/info/Classes/Controller/InfoModuleController.php
typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserFramesetController.php
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/rtehtmlarea/Classes/Controller/ParseHtmlController.php
typo3/sysext/rtehtmlarea/Classes/Controller/UserElementsController.php
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php
typo3/sysext/version/Classes/Controller/VersionModuleController.php

index ece63ce..d80b18b 100644 (file)
@@ -79,7 +79,6 @@ class BackendLayoutWizardController {
                $uid = (int)$this->P['uid'];
                // Initialize document object:
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
                $pageRenderer->loadExtJS();
                $pageRenderer->addJsFile(ExtensionManagementUtility::extRelPath('backend') . 'Resources/Public/JavaScript/grideditor.js');
index a4a67e9..b4a1226 100644 (file)
@@ -57,7 +57,6 @@ class ElementHistoryController {
        protected function init() {
                // Create internal template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/show_rechis.html');
                // Start the page header
                $this->content .= $this->doc->header($this->getLanguageService()->getLL('title'));
index 90df5ff..16bce2d 100644 (file)
@@ -106,7 +106,6 @@ class MoveElementController {
                $this->perms_clause = $this->getBackendUser()->getPagePermsClause(1);
                // Starting the document template object:
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/move_el.html');
                $this->doc->JScode = '';
                // Starting document content (header):
index 34d588d..3dad5a8 100644 (file)
@@ -142,7 +142,6 @@ class NewContentElementController {
                $this->config = $config['mod.']['wizards.']['newContentElement.'];
                // Starting the document template object:
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_new_content_el.html');
                $this->doc->JScode = '';
                $this->doc->form = '<form action="" name="editForm"><input type="hidden" name="defValues" value="" />';
index ba62834..acf828c 100644 (file)
@@ -681,7 +681,6 @@ class EditDocumentController {
                $this->doc = $GLOBALS['TBE_TEMPLATE'];
                $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
                $pageRenderer->addInlineLanguageLabelFile('EXT:lang/locallang_alt_doc.xlf');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_doc.html');
                $this->doc->form = '<form action="' . htmlspecialchars($this->R_URI) . '" method="post" enctype="multipart/form-data" name="editform" onsubmit="document.editform._scrollPosition.value=(document.documentElement.scrollTop || document.body.scrollTop); return TBE_EDITOR.checkSubmit(1);">';
                // override the default jumpToUrl
index 887a105..2389ca1 100644 (file)
@@ -114,7 +114,6 @@ class CreateFolderController {
                // Setting template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_newfolder.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        var path = "' . $this->target . '";
 
index 6856ffc..14f2ef8 100644 (file)
@@ -111,7 +111,6 @@ class EditFileController {
                // Setting template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_edit.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        function backToList() { //
                                top.goToModule("file_list");
index f509c49..ca0546a 100644 (file)
@@ -107,7 +107,6 @@ class FileUploadController {
                // Setting template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_upload.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->form = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('tce_file')) . '" method="post" name="editform" enctype="multipart/form-data">';
        }
 
index c77a76d..14f45ac 100644 (file)
@@ -112,7 +112,6 @@ class RenameFileController {
                // Setting template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_rename.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        function backToList() { //
                                top.goToModule("file_list");
index c693fcf..d67c4f0 100644 (file)
@@ -122,7 +122,6 @@ class ReplaceFileController {
                // Setting template object
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_replace.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        function backToList() { //
                                top.goToModule("file_list");
index 19ae9b4..6b77d39 100644 (file)
@@ -131,7 +131,6 @@ class FileSystemNavigationFrameController {
                $this->doHighlight = !$this->getBackendUser()->getTSConfigVal('options.pageTree.disableTitleHighlight');
                // Create template object:
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_file_navframe.html');
                $this->doc->showFlashMessages = FALSE;
                // Adding javascript code for drag&drop and the filetree as well as the click menu code
index 991998d..cb078f1 100644 (file)
@@ -182,7 +182,6 @@ class NewRecordController {
                $this->pagesOnly = GeneralUtility::_GP('pagesOnly');
                // Create instance of template class for output
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_new.html');
                $this->doc->JScode = '';
                // Setting up the context sensitive menu:
index 11c5502..4b10e23 100755 (executable)
@@ -519,7 +519,6 @@ class PageLayoutController {
 
                        // Start document template object:
                        $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-                       $this->doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_layout.html');
 
                        // override the default jumpToUrl
@@ -669,7 +668,6 @@ class PageLayoutController {
                } else {
                        // If no access or id value, create empty document:
                        $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-                       $this->doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_layout.html');
                        $this->doc->JScode = $this->doc->wrapScriptTags('
                                if (top.fsMod) top.fsMod.recentIds["web"] = ' . (int)$this->id . ';
index 5455a63..051406a 100644 (file)
@@ -137,7 +137,6 @@ class PageTreeNavigationController {
                $doHighlight = !$this->getBackendUser()->getTSConfigVal('options.pageTree.disableTitleHighlight');
                // Create template object:
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_db_navframe.html');
                $this->doc->showFlashMessages = FALSE;
                // Get HTML-Template
index 0b53869..f88875f 100644 (file)
@@ -866,7 +866,6 @@ class FormEngine {
                // Create an instance of the document template object
                // @todo: resolve clash getDocumentTemplate() / getControllerDocumenttemplate()
                $GLOBALS['SOBE']->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $GLOBALS['SOBE']->doc->backPath = $GLOBALS['BACK_PATH'];
                // Initialize FormEngine (rendering the forms)
                // @todo: check if this is still needed, simplify
                $GLOBALS['SOBE']->tceforms = $this;
index 6b53e25..d4fba31 100644 (file)
@@ -57,11 +57,6 @@ class DatabaseIntegrityCheck {
        public $rec_idArray = array();
 
        /**
-        * @var string
-        */
-       public $backPath = '';
-
-       /**
         * @var array
         */
        public $checkFileRefs = array();
index 43fbf35..a18dcb9 100644 (file)
@@ -160,7 +160,6 @@ class HelpModuleController {
                }
 
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:cshmanual/Resources/Private/Templates/cshmanual.html');
 
                $markers = array('CONTENT' => $this->content);
index 2069b5e..7c035d5 100644 (file)
@@ -75,7 +75,6 @@ class ModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                $this->MOD_SETTINGS = BackendUtility::getModuleData($this->MOD_MENU, \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET'), $this->MCONF['name']);
                // Draw the header
                $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->form = '<form action="" method="post">';
                // DBAL page title:
                $this->content .= $this->doc->startPage($languageService->getLL('title'));
index 5383a5d..c803644 100644 (file)
@@ -272,7 +272,6 @@ class FileListController {
        public function main() {
                // Initialize the template object
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:filelist/Resources/Private/Templates/file_list.html');
 
                $pageRenderer = $this->getPageRenderer();
index ced5645..3521c69 100644 (file)
@@ -44,7 +44,6 @@ abstract class AbstractBackendViewHelper extends AbstractViewHelper {
                } else {
                        /** @var $doc DocumentTemplate */
                        $doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-                       $doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->viewHelperVariableContainer->add(AbstractBackendViewHelper::class, 'DocumentTemplate', $doc);
                }
 
index 59fb47c..def9fab 100644 (file)
@@ -56,7 +56,6 @@ class WizardView extends \TYPO3\CMS\Form\View\Wizard\AbstractWizardView {
                $GLOBALS['SOBE'] = $this;
                // Define the document template object
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:form/Resources/Private/Templates/Wizard.html');
                $this->getPageRenderer()->enableConcatenateFiles();
                $this->getPageRenderer()->enableCompressCss();
index 6007268..82d06fe 100644 (file)
@@ -73,7 +73,6 @@ class PageFunctionsController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                        'CONTENT' => ''
                );
                $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:func/Resources/Private/Templates/func.html');
                // Main
                if ($this->id && $access) {
index 15574aa..cff48df 100644 (file)
@@ -91,7 +91,6 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                $this->lang->includeLLFile('EXT:impexp/Resources/Private/Language/locallang.xlf');
                // Start document template object:
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->bodyTagId = 'imp-exp-mod';
                $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('impexp') . '/Resources/Private/Templates/template.html');
                $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause);
index f12cb7b..6a3f141 100644 (file)
@@ -75,7 +75,6 @@ class InfoModuleController extends BaseScriptClass {
         */
        public function main() {
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
 
                // The page will show only if there is a valid page and if this page
                // may be viewed by the user
@@ -146,7 +145,7 @@ class InfoModuleController extends BaseScriptClass {
                // View page
                $buttons['view'] = '<a href="#" ' .
                        'onclick="' . htmlspecialchars(
-                               BackendUtility::viewOnClick($this->pageinfo['uid'], $GLOBALS['BACK_PATH'],
+                               BackendUtility::viewOnClick($this->pageinfo['uid'], '',
                                        BackendUtility::BEgetRootLine($this->pageinfo['uid']))
                        ) . '" ' .
                        'title="' . $this->languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.showPage', TRUE) . '">' .
index 9471231..4b468ab 100644 (file)
@@ -226,7 +226,6 @@ class LinkValidatorReport extends \TYPO3\CMS\Backend\Module\AbstractFunctionModu
                }
 
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:linkvalidator/Resources/Private/Templates/mod_template.html');
 
                $this->pageRecord = BackendUtility::readPageAccess($this->pObj->id, $this->getBackendUser()->getPagePermsClause(1));
index c66b118..1b2a52b 100644 (file)
@@ -56,7 +56,6 @@ class ConfigurationView extends BaseScriptClass {
        public function init() {
                $this->menuConfig();
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:lowlevel/Resources/Private/Templates/config.html');
                $this->doc->form = '<form action="" method="post">';
                $this->doc->addStyleSheet('module', 'sysext/lowlevel/Resources/Public/Css/styles.css');
index da18846..7a21745 100644 (file)
@@ -69,7 +69,6 @@ class DatabaseIntegrityView extends BaseScriptClass {
                $this->MCONF['name'] = 'system_dbint';
                $this->menuConfig();
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:lowlevel/Resources/Private/Templates/dbint.html');
                $this->doc->form = '<form action="" method="post" name="' . $this->formName . '">';
        }
@@ -323,7 +322,6 @@ class DatabaseIntegrityView extends BaseScriptClass {
 
                /** @var $admin DatabaseIntegrityCheck */
                $admin = GeneralUtility::makeInstance(DatabaseIntegrityCheck::class);
-               $admin->backPath = $GLOBALS['BACK_PATH'];
                $admin->genTree(0);
 
                // Pages stat
@@ -365,7 +363,6 @@ class DatabaseIntegrityView extends BaseScriptClass {
                $admin->lostRecords($id_list);
                if ($admin->fixLostRecord(GeneralUtility::_GET('fixLostRecords_table'), GeneralUtility::_GET('fixLostRecords_uid'))) {
                        $admin = GeneralUtility::makeInstance(DatabaseIntegrityCheck::class);
-                       $admin->backPath = $GLOBALS['BACK_PATH'];
                        $admin->genTree(0);
                        $id_list = '-1,0,' . implode(',', array_keys($admin->page_idArray));
                        $id_list = rtrim($id_list, ',');
@@ -421,7 +418,6 @@ class DatabaseIntegrityView extends BaseScriptClass {
         */
        public function func_relations() {
                $admin = GeneralUtility::makeInstance(DatabaseIntegrityCheck::class);
-               $admin->backPath = $GLOBALS['BACK_PATH'];
                $fkey_arrays = $admin->getGroupFields('');
                $admin->selectNonEmptyRecordsWithFkeys($fkey_arrays);
                $fileTest = $admin->testFileRefs();
index ab24e61..03a51ad 100755 (executable)
@@ -368,7 +368,6 @@ class ElementBrowser {
                // Creating backend template object:
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
                $this->doc->bodyTagId = 'typo3-browse-links-php';
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $pageRenderer = $this->getPageRenderer();
                $pageRenderer->loadJquery();
                $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/BrowseLinks');
index 9eea799..9ddd8eb 100644 (file)
@@ -66,7 +66,7 @@ class ElementBrowserFramesetController {
                $documentTemplate->startPage($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:TYPO3_Element_Browser'));
 
                // URL for the inner main frame:
-               $url = $GLOBALS['BACK_PATH'] . $moduleUrl . rawurlencode($mode) . '&bparams=' . rawurlencode($bparams);
+               $url = $moduleUrl . rawurlencode($mode) . '&bparams=' . rawurlencode($bparams);
 
                // Create the frameset for the window
                // Formerly there were a ' onunload="closing();"' in the <frameset> tag - but it failed on Safari browser on Mac unless the handler was "onUnload"
index 3eade47..d52e9fc 100644 (file)
@@ -268,7 +268,6 @@ class RecordList {
                $access = is_array($this->pageinfo) ? 1 : 0;
                // Start document template object:
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:recordlist/Resources/Private/Templates/db_list.html');
                $this->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/AjaxDataHandler');
                $calcPerms = $backendUser->calcPerms($this->pageinfo);
@@ -390,7 +389,7 @@ class RecordList {
                        }
                        // Render the list of tables:
                        $dblist->generateList();
-                       $listUrl = substr($dblist->listURL(), strlen($GLOBALS['BACK_PATH']));
+                       $listUrl = $dblist->listURL();
                        // Add JavaScript functions to the page:
                        $this->doc->JScode = $this->doc->wrapScriptTags('
                                function jumpExt(URL,anchor) {  //
index 4c5b340..3210d71 100644 (file)
@@ -53,7 +53,6 @@ class ParseHtmlController {
         */
        public function init() {
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = '';
                $this->modData = $GLOBALS['BE_USER']->getModuleData($GLOBALS['MCONF']['name'], 'ses');
                if (GeneralUtility::_GP('OC_key')) {
index b93c014..2de4907 100644 (file)
@@ -64,7 +64,6 @@ class UserElementsController {
                $this->editorNo = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('editorNo');
                $this->siteUrl = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
                $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->bodyTagAdditions = 'onload="Init();"';
                $this->doc->form = '
        <form action="" id="process" name="process" method="post">
index 755b1f0..d28db6e 100644 (file)
@@ -50,7 +50,6 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                // Initialize document
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate(ExtensionManagementUtility::extPath('taskcenter') . 'Resources/Private/Templates/mod_template.html');
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->getPageRenderer()->loadJquery();
                $this->doc->addStyleSheet('tx_taskcenter', '../' . ExtensionManagementUtility::siteRelPath('taskcenter') . 'Resources/Public/Css/styles.css');
        }
index 1a4c774..26fa497 100755 (executable)
@@ -151,7 +151,6 @@ class TypoScriptTemplateModuleController extends BaseScriptClass {
 
                /** @var DocumentTemplate doc */
                $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:tstemplate/Resources/Private/Templates/tstemplate.html');
                $this->doc->addStyleSheet('module', 'sysext/tstemplate/Resources/Public/Css/styles.css');
 
index 3590605..7219d89 100644 (file)
@@ -138,7 +138,6 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                $this->REQUEST_URI = str_replace('&sendToReview=1', '', GeneralUtility::getIndpEnv('REQUEST_URI'));
                // Draw the header.
                $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
-               $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:version/Resources/Private/Templates/version.html');
                // Add styles
                $this->doc->inDocStylesArray[$GLOBALS['MCONF']['name']] = '