[BUGFIX] Remove unneeded file_edit check
[Packages/TYPO3.CMS.git] / 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;