Index: branches/5.3.x/core/units/images/image_event_handler.php =================================================================== diff -u -N -r15483 -r15698 --- branches/5.3.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15483) +++ branches/5.3.x/core/units/images/image_event_handler.php (.../image_event_handler.php) (revision 15698) @@ -1,6 +1,6 @@ removeFilter('parent_filter'); $sql = 'SELECT ResourceId - FROM ' . $this->Application->getUnitOption('p', 'TableName') . ' + FROM ' . $this->Application->getUnitConfig('p')->getTableName() . ' WHERE ProductId = ' . $product_id; $resource_id = (int)$this->Conn->GetOne($sql); @@ -389,7 +389,7 @@ function OnCleanImages($event) { // 1. get images, that are currently in use - $active_images = $this->_getActiveImages( $this->Application->getUnitOption('img', 'TableName') ); + $active_images = $this->_getActiveImages( $this->Application->getUnitConfig('img')->getTableName() ); $active_images[] = 'noimage.gif'; // 2. get images on disk