Project

General

Profile

Bug #16166 » 3531_dam.diff

Administrator Admin, 2007-04-11 21:59

View differences:

lib/class.tx_dam_db.php (Arbeitskopie)
function referencesQuery($local_table, $local_uid, $foreign_table, $foreign_uid, $MM_ident='', $MM_table='tx_dam_mm_ref', $fields='', $whereClauses=array(), $groupBy='', $orderBy='', $limit=1000) {
$whereClauses = is_array($whereClauses) ? $whereClauses : array('where' => (preg_replace('^AND ', trim($whereClauses))));
// if we are previewing a CE in a draft-workspace, then use the uid of this
// CE and not the uid it will be published under (_ORIG_uid)
if ($this->cObj->data['_ORIG_uid'] && $this->cObj->data['_ORIG_uid'] != $this->cObj->data['uid']) {
$foreign_uid = $this->cObj->data['_ORIG_uid'];
}
$MM_table = $MM_table ? $MM_table : 'tx_dam_mm_ref';
(4-4/13)