Project

General

Profile

Bug #22921 » 14771_updates_impexp_v2.patch

Administrator Admin, 2010-06-17 22:57

View differences:

typo3/sysext/impexp/ext_tables.php (Arbeitskopie)
}
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');
typo3/sysext/impexp/task/class.tx_impexp_task.php (Arbeitskopie)
return '';
}
/**
* Main Task center module
*
......
} 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();
......
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?
......
// collect all preset information
$lines[$key] = array(
'icon' => $icon,
'title' => htmlspecialchars($title),
'descriptionHtml' => implode('<br />', $description),
'link' => 'mod.php?M=user_task&SET[function]=impexp.tasks&display=' . $presetCfg['uid']
'icon' => $icon,
'title' => $title,
'descriptionHtml' => implode('<br />', $description),
'link' => 'mod.php?M=user_task&SET[function]=impexp.tasks&display=' . $presetCfg['uid']
);
}
......
$GLOBALS['LANG']->getLL('no-presets'),
'',
t3lib_FlashMessage::NOTICE
);
$content .= $flashMessage->render();
}
......
*
* @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;
}
......
*
* @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 '';
}
}
(2-2/4)