From 86ca01ea921d4fdd8909d1ac51c70682fb4c2391 Mon Sep 17 00:00:00 2001 From: Benjamin Mack Date: Mon, 8 Dec 2014 21:41:34 +0100 Subject: [PATCH] [BUGFIX] Remove unneeded file_edit check 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 Tested-by: Wouter Wolters Reviewed-by: Stefan Neufeind Tested-by: Stefan Neufeind --- typo3/sysext/t3editor/Classes/Hook/FileEditHook.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/typo3/sysext/t3editor/Classes/Hook/FileEditHook.php b/typo3/sysext/t3editor/Classes/Hook/FileEditHook.php index 87e422719a6e..cc1f3b259e3a 100644 --- a/typo3/sysext/t3editor/Classes/Hook/FileEditHook.php +++ b/typo3/sysext/t3editor/Classes/Hook/FileEditHook.php @@ -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; -- 2.20.1