Bug #4572 ยป scheduler-invalidargument.patch
mod1/index.php (working copy) | ||
---|---|---|
*/
|
||
protected static function getRegisteredClasses() {
|
||
$list = array();
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'] as $class => $registrationInformation) {
|
||
|
||
$title = isset($registrationInformation['title']) ? $GLOBALS['LANG']->sL($registrationInformation['title']) : '';
|
||
$description = isset($registrationInformation['description']) ? $GLOBALS['LANG']->sL($registrationInformation['description']) : '';
|
||
|
||
$list[$class] = array(
|
||
'extension' => $registrationInformation['extension'],
|
||
'title' => $title,
|
||
'description' => $description,
|
||
'provider' => isset($registrationInformation['additionalFields']) ? $registrationInformation['additionalFields'] : ''
|
||
);
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'] as $class => $registrationInformation) {
|
||
|
||
$title = isset($registrationInformation['title']) ? $GLOBALS['LANG']->sL($registrationInformation['title']) : '';
|
||
$description = isset($registrationInformation['description']) ? $GLOBALS['LANG']->sL($registrationInformation['description']) : '';
|
||
|
||
$list[$class] = array(
|
||
'extension' => $registrationInformation['extension'],
|
||
'title' => $title,
|
||
'description' => $description,
|
||
'provider' => isset($registrationInformation['additionalFields']) ? $registrationInformation['additionalFields'] : ''
|
||
);
|
||
}
|
||
}
|
||
|
||
return $list;
|