Using PHP_SCRIPT_INT throws an Exception "Expected parameter
$conf['scriptSuffix'] was not given.", in its render() method.
As the parameter is useless and not used in other places, this check
can be removed.
Change-Id: I64fd656e0af78e711290aea597353c7194dd613d
Resolves: #25145
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/1466
Reviewed-by: Björn Pedersen
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
*/
function PHP_SCRIPT($conf, $ext = '') {
if ($ext === 'INT' || $ext === 'EXT') {
- $conf['scriptSuffix'] = $ext;
return $this->getContentObject('PHP_SCRIPT_INT')->render($conf);
} else {
return $this->getContentObject('PHP_SCRIPT')->render($conf);
* @return string Output
*/
public function render($conf = array()) {
- if (!is_array($conf) || empty($conf['scriptSuffix'])) {
- throw new InvalidArgumentException('Expected parameter $conf[\'scriptSuffix\'] was not given.', 1295705938);
- }
-
$file = isset($conf['file.'])
? $this->cObj->stdWrap($conf['file'], $conf['file.'])
: $conf['file'];