Bug #4572 ยป scheduler-invalidargument.patch
mod1/index.php (working copy) | ||
---|---|---|
1225 | 1225 |
*/ |
1226 | 1226 |
protected static function getRegisteredClasses() { |
1227 | 1227 |
$list = array(); |
1228 |
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'] as $class => $registrationInformation) { |
|
1229 |
|
|
1230 |
$title = isset($registrationInformation['title']) ? $GLOBALS['LANG']->sL($registrationInformation['title']) : ''; |
|
1231 |
$description = isset($registrationInformation['description']) ? $GLOBALS['LANG']->sL($registrationInformation['description']) : ''; |
|
1232 |
|
|
1233 |
$list[$class] = array( |
|
1234 |
'extension' => $registrationInformation['extension'], |
|
1235 |
'title' => $title, |
|
1236 |
'description' => $description, |
|
1237 |
'provider' => isset($registrationInformation['additionalFields']) ? $registrationInformation['additionalFields'] : '' |
|
1238 |
); |
|
1228 |
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']) { |
|
1229 |
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'] as $class => $registrationInformation) { |
|
1230 |
|
|
1231 |
$title = isset($registrationInformation['title']) ? $GLOBALS['LANG']->sL($registrationInformation['title']) : ''; |
|
1232 |
$description = isset($registrationInformation['description']) ? $GLOBALS['LANG']->sL($registrationInformation['description']) : ''; |
|
1233 |
|
|
1234 |
$list[$class] = array( |
|
1235 |
'extension' => $registrationInformation['extension'], |
|
1236 |
'title' => $title, |
|
1237 |
'description' => $description, |
|
1238 |
'provider' => isset($registrationInformation['additionalFields']) ? $registrationInformation['additionalFields'] : '' |
|
1239 |
); |
|
1240 |
} |
|
1239 | 1241 |
} |
1240 | 1242 |
|
1241 | 1243 |
return $list; |