Project

General

Profile

Bug #14572 ยป 0000835-class.indexer.php.diff

Administrator Admin, 2005-02-27 13:02

View differences:

class.indexer.php 2005-02-27 12:44:32.000000000 +0100
*/
function submitFilePage($hash,$file,$subinfo,$ext,$mtime,$ctime,$size,$content_md5h,$contentParts) {
// Removing old registrations for tables.
$tableArr = explode(',','index_phash,index_fulltext,index_grlist');
$tableArr = explode(',','index_fulltext,index_grlist');
$GLOBALS['TYPO3_DB']->exec_DELETEquery(index_phash, 'phash="'.$GLOBALS['TYPO3_DB']->quoteStr($hash['phash'], index_phash).'" AND sys_language_uid='.$this->pObj->sys_language_uid);
foreach($tableArr as $table) {
$GLOBALS['TYPO3_DB']->exec_DELETEquery($table, 'phash="'.$GLOBALS['TYPO3_DB']->quoteStr($hash['phash'], $table).'"');
}
......
'item_crdate' => $ctime,
'tstamp' => time(),
'crdate' => time(),
'gr_list' => $this->pObj->gr_list
'gr_list' => $this->pObj->gr_list,
'sys_language_uid' => $this->pObj->sys_language_uid // Sys language uid of the page. Should reflect which language it DOES actually display!
);
$GLOBALS['TYPO3_DB']->exec_INSERTquery('index_phash', $fields);
......
$hash = array();
$hArray = array(
'file' => $file,
'sys_lang' => $this->pObj->sys_language_uid,
);
// Set grouping hash:
    (1-1/1)