[BUGFIX] Remove unneeded file_edit check 70/35170/3
authorBenjamin Mack <benni@typo3.org>
Mon, 8 Dec 2014 20:41:34 +0000 (21:41 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 8 Dec 2014 23:16:30 +0000 (00:16 +0100)
There is a left-over code after
file_edit.php was removed from
the core in 7.1 development.

The patch removes the check.

Releases: master
Resolves: #63686
Change-Id: I283ad1e7aea9f7f9d113ecc76178e1bf26504ca0
Reviewed-on: http://review.typo3.org/35170
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/t3editor/Classes/Hook/FileEditHook.php

index 87e4227..cc1f3b2 100644 (file)
@@ -68,8 +68,7 @@ class FileEditHook {
         * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::startPage
         */
        public function preStartPageHook($parameters, $pObj) {
-               // The preg_match call is deprecated and can be removed if the file typo3/file_edit.php is removed.
-               if (GeneralUtility::_GET('M') === 'file_edit' || preg_match('/typo3\\/file_edit\\.php/', $_SERVER['SCRIPT_NAME'])) {
+               if (GeneralUtility::_GET('M') === 'file_edit') {
                        $t3editor = $this->getT3editor();
                        if (!$t3editor->isEnabled()) {
                                return;