Project

General

Profile

Task #24551 » lowerCamelCase-getUrl-typo3-sysext-em.diff

Administrator Admin, 2011-01-13 16:44

View differences:

typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
$path = PATH_site . $path;
if (@file_exists($path)) {
//TODO: charset conversion
return t3lib_div::getURL($path);
return t3lib_div::getUrl($path);
}
return '';
}
typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php
function fetchExtension($extKey, $version, $expectedMD5, $mirrorURL) {
$extPath = t3lib_div::strtolower($extKey);
$mirrorURL .= $extPath{0} . '/' . $extPath{1} . '/' . $extPath . '_' . $version . '.t3x';
$t3x = t3lib_div::getURL($mirrorURL, 0, array(TYPO3_user_agent));
$t3x = t3lib_div::getUrl($mirrorURL, 0, array(TYPO3_user_agent));
$MD5 = md5($t3x);
if ($t3x === FALSE) {
......
function fetchTranslation($extKey, $lang, $mirrorURL) {
$extPath = t3lib_div::strtolower($extKey);
$mirrorURL .= $extPath{0} . '/' . $extPath{1} . '/' . $extPath . '-l10n/' . $extPath . '-l10n-' . $lang . '.zip';
$l10n = t3lib_div::getURL($mirrorURL, 0, array(TYPO3_user_agent));
$l10n = t3lib_div::getUrl($mirrorURL, 0, array(TYPO3_user_agent));
if ($l10n !== false) {
return array($l10n);
......
function fetchTranslationStatus($extKey, $mirrorURL) {
$extPath = t3lib_div::strtolower($extKey);
$mirrorURL .= $extPath{0} . '/' . $extPath{1} . '/' . $extPath . '-l10n/' . $extPath . '-l10n.xml';
$remote = t3lib_div::getURL($mirrorURL, 0, array(TYPO3_user_agent));
$remote = t3lib_div::getUrl($mirrorURL, 0, array(TYPO3_user_agent));
if ($remote !== false) {
$parsed = $this->emObj->xmlHandler->parseL10nXML($remote);
typo3/sysext/em/classes/index.php
switch ($metaType) {
case 'mirrors':
$mfile = t3lib_div::tempnam('mirrors');
$mirrorsFile = t3lib_div::getURL($this->MOD_SETTINGS['mirrorListURL'], 0, array(TYPO3_user_agent));
$mirrorsFile = t3lib_div::getUrl($this->MOD_SETTINGS['mirrorListURL'], 0, array(TYPO3_user_agent));
if ($mirrorsFile===false) {
t3lib_div::unlink_tempfile($mfile);
$content = '<p>' .
......
$mirror = $this->getMirrorURL();
$extfile = $mirror . 'extensions.xml.gz';
$extmd5 = t3lib_div::getURL($mirror . 'extensions.md5', 0, array(TYPO3_user_agent));
$extmd5 = t3lib_div::getUrl($mirror . 'extensions.md5', 0, array(TYPO3_user_agent));
if (is_file(PATH_site . 'typo3temp/extensions.xml.gz')) {
$localmd5 = md5_file(PATH_site . 'typo3temp/extensions.xml.gz');
}
......
);
$content .= $flashMessage->render();
} else {
$extXML = t3lib_div::getURL($extfile, 0, array(TYPO3_user_agent));
$extXML = t3lib_div::getUrl($extfile, 0, array(TYPO3_user_agent));
if ($extXML === false) {
$content .= '<p>' .
sprintf($GLOBALS['LANG']->getLL('ext_import_list_unchanged'),
typo3/sysext/em/classes/repository/class.tx_em_repository_utility.php
* @param string $remoteRessource remote ressource to read contents from
* @param string $localRessource local ressource (absolute file path) to store retrieved contents to
* @return void
* @see t3lib_div::getURL(), t3lib_div::writeFile()
* @see t3lib_div::getUrl(), t3lib_div::writeFile()
* @throws tx_em_ConnectionException
*/
protected function fetchFile($remoteRessource, $localRessource) {
if (is_string($remoteRessource) && is_string($localRessource)
&& !empty($remoteRessource) && !empty($localRessource)) {
$fileContent = t3lib_div::getURL($remoteRessource, 0, array(TYPO3_user_agent));
$fileContent = t3lib_div::getUrl($remoteRessource, 0, array(TYPO3_user_agent));
if ($fileContent !== false) {
t3lib_div::writeFile($localRessource, $fileContent) || $this->throwConnectionException(sprintf('Could not write to file %s.', htmlspecialchars($localRessource)));
} else {
......
if (!is_file($this->getLocalExtListFile())) {
$updateNecessity |= self::PROBLEM_EXTENSION_FILE_NOT_EXISTING;
} else {
$remotemd5 = t3lib_div::getURL($this->getRemoteExtHashFile(), 0, array(TYPO3_user_agent));
$remotemd5 = t3lib_div::getUrl($this->getRemoteExtHashFile(), 0, array(TYPO3_user_agent));
if ($remotemd5 !== false) {
$localmd5 = md5_file($this->getLocalExtListFile());
typo3/sysext/em/classes/tools/class.tx_em_tools.php
* @param $file
*/
public static function getArrayFromLocallang($file, $key = 'default') {
$content = t3lib_div::getURL($file);
$content = t3lib_div::getUrl($file);
$array = t3lib_div::xml2array($content);
return $array['data'][$key];
(15-15/21)