Project

General

Profile

Bug #19517 » 0009664-trunk.patch

Administrator Admin, 2008-10-28 14:53

View differences:

typo3/mod/tools/em/class.em_index.php (working copy)
$GLOBALS['LANG']->csConvObj->convArray($data,'utf-8',$GLOBALS['LANG']->charSet); // is there a better place for conversion?
$list[$extKey]['type'] = '_';
$version = array_keys($data['versions']);
$list[$extKey]['_ICON'] = '<img alt="" src="'.$filepath.$extKey{0}.'/'.$extKey{1}.'/'.$extKey.'_'.end($version).'.gif" />';
$list[$extKey]['_ICON'] = '<img alt="" src="'.$filepath.strtolower($extKey{0}.'/'.$extKey{1}.'/'.$extKey).'_'.end($version).'.gif" />';
$list[$extKey]['downloadcounter'] = $data['downloadcounter'];
foreach(array_keys($data['versions']) as $version) {
typo3/mod/tools/em/class.em_terconnection.php (working copy)
* @return mixed T3X data (array) or error message (string)
*/
function fetchExtension($extKey, $version, $expectedMD5, $mirrorURL) {
$mirrorURL .= $extKey{0}.'/'.$extKey{1}.'/'.$extKey.'_'.$version.'.t3x';
$mirrorURL .= strtolower($extKey{0}.'/'.$extKey{1}.'/'.$extKey).'_'.$version.'.t3x';
$t3x = t3lib_div::getURL($mirrorURL, 0, array(TYPO3_user_agent));
$MD5 = md5($t3x);
......
* @return mixed Array containing l10n data or error message (string)
*/
function fetchTranslation($extKey, $lang, $mirrorURL) {
$mirrorURL .= $extKey{0}.'/'.$extKey{1}.'/'.$extKey.'-l10n/'.$extKey.'-l10n-'.$lang.'.zip';
$mirrorURL .= strtolower($extKey{0}.'/'.$extKey{1}.'/'.$extKey.'-l10n/'.$extKey).'-l10n-'.$lang.'.zip';
$l10n = t3lib_div::getURL($mirrorURL, 0, array(TYPO3_user_agent));
if($l10n !== false) {
......
*/
function fetchTranslationStatus($extKey, $mirrorURL) {
$url = $mirrorURL . $extKey{0}.'/'.$extKey{1}.'/'.$extKey.'-l10n/'.$extKey.'-l10n.xml';
$url = $mirrorURL . strtolower($extKey{0}.'/'.$extKey{1}.'/'.$extKey.'-l10n/'.$extKey).'-l10n.xml';
$remote = t3lib_div::getURL($url, 0, array(TYPO3_user_agent));
if($remote !== false) {
(1-1/4)