Bug #22584 ยป file-language.patch
pi/class.tx_indexedsearch.php (working copy) | ||
---|---|---|
*/
|
||
function languageWhere() {
|
||
if ($this->piVars['lang']>=0) { // -1 is the same as ALL language.
|
||
return 'AND IP.sys_language_uid='.intval($this->piVars['lang']);
|
||
return 'AND
|
||
(
|
||
IP.sys_language_uid='.intval($this->piVars['lang']).'
|
||
OR
|
||
(
|
||
IP.sys_language_uid=0
|
||
AND
|
||
IP.item_type != '.$GLOBALS['TYPO3_DB']->fullQuoteStr('0', 'index_phash').'
|
||
)
|
||
)';
|
||
}
|
||
}
|
||