[BUGFIX] Do not suppress parse errors in ext_emconf.php files
authorSteffen Gebert <steffen.gebert@typo3.org>
Thu, 2 Jun 2011 12:54:46 +0000 (14:54 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 3 Jun 2011 07:05:39 +0000 (09:05 +0200)
In case of parse errors in an ext_emconf.php file, the error message
has been suppressed because of an @include(). Nevertheless, the EM
stops working with a blank page (without any error log entry).

Removing the @ shows the warning so that it easier for the user to
identify the erroneous extension.

Change-Id: I5dd67f1b486850ea1766dc8949b9541352632089
Resolves: #17506
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/2504
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/em/classes/tools/class.tx_em_tools.php

index e6fc4a1..0dc9436 100644 (file)
@@ -315,7 +315,7 @@ final class tx_em_Tools {
         */
        public static function includeEMCONF($path, $_EXTKEY) {
                $EM_CONF = NULL;
-               @include($path);
+               include($path);
                if (is_array($EM_CONF[$_EXTKEY])) {
                        return self::fixEMCONF($EM_CONF[$_EXTKEY]);
                }