Index: branches/5.3.x/core/units/helpers/image_helper.php =================================================================== diff -u -N -r15677 -r15698 --- branches/5.3.x/core/units/helpers/image_helper.php (.../image_helper.php) (revision 15677) +++ branches/5.3.x/core/units/helpers/image_helper.php (.../image_helper.php) (revision 15698) @@ -1,6 +1,6 @@ Application->getUnitOption('img', 'TableName'); - $max_image_count = $this->Application->getUnitOption($object->Prefix, 'ImageCount'); // $this->Application->ConfigValue($object->Prefix.'_MaxImageCount'); + $table_name = $this->Application->getUnitConfig('img')->getTableName(); + $max_image_count = $object->getUnitConfig()->getImageCount(); // $this->Application->ConfigValue($object->Prefix.'_MaxImageCount'); $i = 0; while ($i < $max_image_count) {