Review TYPO3_4-3 Abandoned

6666[BUGFIX] Extbase dispatcher registration causes PHP warning in t3lib_loadModules

Marcus Krause CR 0 V 0 Easy +2 −0 updated 06/03/13, 20:49

Commit message

Class t3lib_loadModules parses TBE_MODULES (BE modules) and applies
various checks on the BE modules. The TBE_MODULES is an array of
key-value pairs; the value being a comma-separated list of submodules.

The Extbase dispatcher registration however looks like this:
$TBE_MODULES['_dispatcher'][] = 'Tx_Extbase_Dispatcher';
and such TBE_MODULES value is an array.

This causes a PHP warning in t3lib_loadModules::parseModulesArray()
(expects string only).

Solution is to remove dispatcher part before passing TBE_MODULES to
t3lib_loadModules::parseModulesArray(). This has been done
on May 27, 2010 with #M13604 for TYPO3 4.4+ (leaving 4.3 aside).

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1