Index: trunk/kernel/units/images/images_config.php =================================================================== diff -u -N -r7991 -r7997 --- trunk/kernel/units/images/images_config.php (.../images_config.php) (revision 7991) +++ trunk/kernel/units/images/images_config.php (.../images_config.php) (revision 7997) @@ -79,12 +79,12 @@ 'Fields' => Array( 'ImageId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), 'ResourceId' => Array('type'=>'int', 'not_null'=>1, 'default' => 0), - 'Url' => Array('max_len'=>255, 'default' => '', 'not_null'=>1), - 'Name' => Array('max_len'=>255, 'required'=>1, 'not_null'=>1, 'default' => ''), - 'AltName' => Array('max_len'=>255, 'required'=>1, 'not_null'=>1, 'default' => ''), + 'Url' => Array('type' => 'string', 'max_len'=>255, 'default' => '', 'not_null'=>1), + 'Name' => Array('type' => 'string', 'max_len'=>255, 'required'=>1, 'not_null'=>1, 'default' => ''), + 'AltName' => Array('type' => 'string', 'max_len'=>255, 'required'=>1, 'not_null'=>1, 'default' => ''), 'ImageIndex' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), 'LocalImage' => Array('type'=>'int', 'default' => 1, 'not_null'=>1), - 'LocalPath' => Array('formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len'=>240, 'default' => '', 'not_null' => 1, 'include_path' => 1, + 'LocalPath' => Array('type' => 'string', 'formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len'=>240, 'default' => '', 'not_null' => 1, 'include_path' => 1, 'allowed_types' => Array( 0 => 'image/jpeg', 1 => 'image/pjpeg', @@ -97,11 +97,11 @@ 'cant_save_file' => '!la_error_cant_save_file!' ) ), - 'Enabled' => Array('formatter'=>'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Enabled', 0 => 'la_Disabled' ), 'default' => 0, 'not_null'=>1), + 'Enabled' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array ( 1 => 'la_Enabled', 0 => 'la_Disabled' ), 'default' => 0, 'not_null'=>1), 'DefaultImg' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), 'ThumbUrl' => Array('type' => 'string', 'max_len' => 255, 'default' => ''), 'Priority' => Array('type'=>'int', 'default' => 0, 'not_null'=>1), - 'ThumbPath' => Array( 'formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len' => 255, 'default' => '', + 'ThumbPath' => Array('type' => 'string', 'formatter'=>'kPictureFormatter', 'skip_empty'=>1, 'max_len' => 255, 'default' => '', 'allowed_types' => Array( 0 => 'image/jpeg', 1 => 'image/pjpeg',