Project

General

Profile

Bug #4572 ยป scheduler-invalidargument.patch

Georg Ringer, 2009-09-11 11:38

View differences:

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;
    (1-1/1)