Project

General

Profile

Task #24551 » getURL-typo3-sysext-install.diff

Administrator Admin, 2011-01-13 14:14

View differences:

typo3/sysext/install/mod/class.tx_install.php
if ($fileFound && @is_file($this->INSTALL['typo3conf_files'])) {
$backupFile = $this->getBackupFilename($this->INSTALL['typo3conf_files']);
$fileContent = t3lib_div::getUrl($this->INSTALL['typo3conf_files']);
$fileContent = t3lib_div::getURL($this->INSTALL['typo3conf_files']);
// Get the subpart to edit the files
$fileEditTemplate = t3lib_parsehtml::getSubpart($template, '###FILEEDIT###');
$allowFileEditOutsideTypo3ConfDirSubPart = '';
......
* @return void
*/
function generateConfigForm($type='') {
$default_config_content = t3lib_div::getUrl(PATH_t3lib.'config_default.php');
$default_config_content = t3lib_div::getURL(PATH_t3lib.'config_default.php');
$commentArr = $this->getDefaultConfigArrayComments($default_config_content);
switch($type) {
......
case 'cmpFile':
$tblFileContent='';
if (!strcmp($actionParts[1],'CURRENT_TABLES')) {
$tblFileContent = t3lib_div::getUrl(PATH_t3lib.'stddb/tables.sql');
$tblFileContent = t3lib_div::getURL(PATH_t3lib.'stddb/tables.sql');
foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $loadedExtConf) {
if (is_array($loadedExtConf) && $loadedExtConf['ext_tables.sql']) {
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getUrl($loadedExtConf['ext_tables.sql']);
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getURL($loadedExtConf['ext_tables.sql']);
}
}
} elseif (@is_file($actionParts[1])) {
$tblFileContent = t3lib_div::getUrl($actionParts[1]);
$tblFileContent = t3lib_div::getURL($actionParts[1]);
}
if ($tblFileContent) {
$fileContent = implode(
......
$tblFileContent='';
if (preg_match('/^CURRENT_/', $actionParts[1])) {
if (!strcmp($actionParts[1],'CURRENT_TABLES') || !strcmp($actionParts[1],'CURRENT_TABLES+STATIC')) {
$tblFileContent = t3lib_div::getUrl(PATH_t3lib.'stddb/tables.sql');
$tblFileContent = t3lib_div::getURL(PATH_t3lib.'stddb/tables.sql');
foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $loadedExtConf) {
if (is_array($loadedExtConf) && $loadedExtConf['ext_tables.sql']) {
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getUrl($loadedExtConf['ext_tables.sql']);
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getURL($loadedExtConf['ext_tables.sql']);
}
}
}
if (!strcmp($actionParts[1],'CURRENT_STATIC') || !strcmp($actionParts[1],'CURRENT_TABLES+STATIC')) {
foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $loadedExtConf) {
if (is_array($loadedExtConf) && $loadedExtConf['ext_tables_static+adt.sql']) {
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getUrl($loadedExtConf['ext_tables_static+adt.sql']);
$tblFileContent.= chr(10).chr(10).chr(10).chr(10).t3lib_div::getURL($loadedExtConf['ext_tables_static+adt.sql']);
}
}
}
} elseif (@is_file($actionParts[1])) {
$tblFileContent = t3lib_div::getUrl($actionParts[1]);
$tblFileContent = t3lib_div::getURL($actionParts[1]);
}
if ($tblFileContent) {
......
if (@is_file($actionParts[1])) {
$tLabel = 'Import SQL dump';
// Getting statement array from
$fileContent = t3lib_div::getUrl($actionParts[1]);
$fileContent = t3lib_div::getURL($actionParts[1]);
$statements = $this->getStatementArray($fileContent, 1);
$maxL = 1000;
$strLen = strlen($fileContent);
(8-8/21)