Index: typo3/sysext/impexp/ext_tables.php =================================================================== --- typo3/sysext/impexp/ext_tables.php (Revision 7955) +++ typo3/sysext/impexp/ext_tables.php (Arbeitskopie) @@ -4,17 +4,16 @@ } if (TYPO3_MODE == 'BE') { - $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array ( + $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array( 'name' => 'tx_impexp_clickmenu', 'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_impexp_clickmenu.php' ); - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tasks'] = array ( + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tx_impexp_task'] = array( 'title' => 'LLL:EXT:impexp/locallang_csh.xml:.alttitle', 'description' => 'LLL:EXT:impexp/locallang_csh.xml:.description', - 'icon' => 'EXT:impexp/export.gif', - 'task' => 'tx_impexp_task', + 'icon' => 'EXT:impexp/export.gif' ); t3lib_extMgm::addLLrefForTCAdescr('xMOD_tx_impexp','EXT:impexp/locallang_csh.xml'); Index: typo3/sysext/impexp/task/class.tx_impexp_task.php =================================================================== --- typo3/sysext/impexp/task/class.tx_impexp_task.php (Revision 7955) +++ typo3/sysext/impexp/task/class.tx_impexp_task.php (Arbeitskopie) @@ -68,8 +68,6 @@ return ''; } - - /** * Main Task center module * @@ -86,9 +84,9 @@ } else { // header $content .= $this->taskObject->description( - $GLOBALS['LANG']->getLL('.alttitle'), - $GLOBALS['LANG']->getLL('.description') - ); + $GLOBALS['LANG']->getLL('.alttitle'), + $GLOBALS['LANG']->getLL('.description') + ); $thumbnails = $lines = array(); @@ -109,16 +107,9 @@ foreach($presets as $key => $presetCfg) { $configuration = unserialize($presetCfg['preset_data']); $thumbnailFile = $thumbnails[$configuration['meta']['thumbnail']]; - $title = strlen($presetCfg['title']) ? $presetCfg['title'] : '['.$presetCfg['uid'].']'; + $title = strlen($presetCfg['title']) ? $presetCfg['title'] : '[' . $presetCfg['uid'] . ']'; + $icon = 'EXT:impexp/export.gif'; - if ($thumbnailFile && 1==2) { - // @todo: create icon or maybe completly remove it because where to display? - $src= '../' . $GLOBALS['BACK_PATH'] . substr($tempDir, strlen(PATH_site)) . basename($thumbnailFile); - $icon = $src; - } else { - $icon = 'EXT:impexp/export.gif'; - } - $description = array(); // is public? @@ -157,10 +148,10 @@ // collect all preset information $lines[$key] = array( - 'icon' => $icon, - 'title' => htmlspecialchars($title), - 'descriptionHtml' => implode('
', $description), - 'link' => 'mod.php?M=user_task&SET[function]=impexp.tasks&display=' . $presetCfg['uid'] + 'icon' => $icon, + 'title' => $title, + 'descriptionHtml' => implode('
', $description), + 'link' => 'mod.php?M=user_task&SET[function]=impexp.tasks&display=' . $presetCfg['uid'] ); } @@ -174,7 +165,6 @@ $GLOBALS['LANG']->getLL('no-presets'), '', t3lib_FlashMessage::NOTICE - ); $content .= $flashMessage->render(); } @@ -189,14 +179,14 @@ * * @return array Array of preset records */ - function getPresets() { + protected function getPresets() { $presets = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( - '*', - 'tx_impexp_presets', - '(public > 0 OR user_uid=' . $GLOBALS['BE_USER']->user['uid'] . ')', - '', - 'item_uid DESC, title' - ); + '*', + 'tx_impexp_presets', + '(public > 0 OR user_uid=' . $GLOBALS['BE_USER']->user['uid'] . ')', + '', + 'item_uid DESC, title' + ); return $presets; } @@ -206,16 +196,17 @@ * * @return string Absolute path to first "_temp_" folder of the current user, otherwise blank. */ - function userTempFolder() { + protected function userTempFolder() { foreach($GLOBALS['FILEMOUNTS'] as $filePathInfo) { $tempFolder = $filePathInfo['path'] . '_temp_/'; if (@is_dir($tempFolder)) { return $tempFolder; } } + + return ''; } - }