Task #24551 » getURL-typo3-sysext-dbal.diff
typo3/sysext/dbal/class.ux_t3lib_db.php | ||
---|---|---|
// try to fetch cached file first
|
||
// file is removed when admin_query() is called
|
||
if (file_exists(PATH_typo3conf . 'temp_fieldInfo.php')) {
|
||
$fdata = unserialize(t3lib_div::getUrl(PATH_typo3conf . 'temp_fieldInfo.php'));
|
||
$fdata = unserialize(t3lib_div::getURL(PATH_typo3conf . 'temp_fieldInfo.php'));
|
||
$this->cache_autoIncFields = $fdata['incFields'];
|
||
$this->cache_fieldType = $fdata['fieldTypes'];
|
||
$this->cache_primaryKeys = $fdata['primaryKeys'];
|
||
} else {
|
||
// handle stddb.sql, parse and analyze
|
||
$extSQL = t3lib_div::getUrl(PATH_site . 't3lib/stddb/tables.sql');
|
||
$extSQL = t3lib_div::getURL(PATH_site . 't3lib/stddb/tables.sql');
|
||
$parsedExtSQL = $this->Installer->getFieldDefinitions_fileContent($extSQL);
|
||
$this->analyzeFields($parsedExtSQL);
|
||
... | ... | |
}
|
||
// fetch db dump (if any) and parse it, then analyze
|
||
$extSQL = t3lib_div::getUrl($v['ext_tables.sql']);
|
||
$extSQL = t3lib_div::getURL($v['ext_tables.sql']);
|
||
$parsedExtSQL = $this->Installer->getFieldDefinitions_fileContent($extSQL);
|
||
$this->analyzeFields($parsedExtSQL);
|
||
}
|
||
... | ... | |
// write serialized content to file
|
||
t3lib_div::writeFile(PATH_typo3conf . 'temp_fieldInfo.php', $cachedFieldInfo);
|
||
if (strcmp(t3lib_div::getUrl(PATH_typo3conf . 'temp_fieldInfo.php'), $cachedFieldInfo)) {
|
||
if (strcmp(t3lib_div::getURL(PATH_typo3conf . 'temp_fieldInfo.php'), $cachedFieldInfo)) {
|
||
die('typo3conf/temp_fieldInfo.php was NOT updated properly (written content didn\'t match file content) - maybe write access problem?');
|
||
}
|
||
}
|
typo3/sysext/dbal/handlers/class.tx_dbal_handler_xmldb.php | ||
---|---|---|
if (!isset($this->data[$table])) { // Checking if it has already been read
|
||
$newTableFile = 'TABLE_'.$table.'.xml';
|
||
if (@is_file($this->DBdir.$newTableFile)) {
|
||
$this->data[$table] = t3lib_div::xml2array(t3lib_div::getUrl($this->DBdir.$newTableFile));
|
||
$this->data[$table] = t3lib_div::xml2array(t3lib_div::getURL($this->DBdir.$newTableFile));
|
||
if (!is_array($this->data[$table])) $this->data[$table] = array();
|
||
return TRUE;
|
||
} else {
|
||
... | ... | |
* @return void
|
||
*/
|
||
function xmlDB_readStructure() {
|
||
$this->DBstructure = t3lib_div::xml2array(t3lib_div::getUrl($this->DBdir.'_STRUCTURE.xml'));
|
||
$this->DBstructure = t3lib_div::xml2array(t3lib_div::getURL($this->DBdir.'_STRUCTURE.xml'));
|
||
}
|
||