Index: branches/5.3.x/units/currencies/currencies_event_handler.php =================================================================== diff -u -N -r15583 -r15695 --- branches/5.3.x/units/currencies/currencies_event_handler.php (.../currencies_event_handler.php) (revision 15583) +++ branches/5.3.x/units/currencies/currencies_event_handler.php (.../currencies_event_handler.php) (revision 15695) @@ -1,6 +1,6 @@ GetDBField('IsPrimary') && $object->Validate() ) { - $sql = 'UPDATE ' . $this->Application->getUnitOption($this->Prefix, 'TableName') . ' + $sql = 'UPDATE ' . $event->getUnitConfig()->getTableName() . ' SET IsPrimary = 0 WHERE CurrencyId <> ' . $object->GetDBField('CurrencyId'); $this->Conn->Query($sql); @@ -106,7 +106,7 @@ $object->SetDBField('Modified_time', adodb_mktime()); if ( $object->GetDBField('Status') == 0 ) { - $sql = 'DELETE FROM ' . $this->Application->getUnitOption('ptc', 'TableName') . ' + $sql = 'DELETE FROM ' . $this->Application->getUnitConfig('ptc')->getTableName() . ' WHERE CurrencyId = ' . $object->GetDBField('CurrencyId'); $this->Conn->Query($sql); } @@ -178,7 +178,7 @@ $unused_ids = $this->Application->GetVar('unused_ids'); if ( $unused_ids ) { - $sql = 'UPDATE ' . $this->Application->getUnitOption($event->Prefix, 'TableName') . ' + $sql = 'UPDATE ' . $event->getUnitConfig()->getTableName() . ' SET Status = 0 WHERE CurrencyId IN(' . $unused_ids . ') AND IsPrimary <> 1'; $this->Conn->Query($sql);