Index: core/units/categories/categories_config.php =================================================================== --- core/units/categories/categories_config.php (revision 13241) +++ core/units/categories/categories_config.php (working copy) @@ -273,6 +273,7 @@ '' => Array ( 'CurrentSort' => "REPLACE(ParentPath, CONCAT('|', ".'%1$s'.".CategoryId, '|'), '')", + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -370,6 +371,7 @@ 'OldPriority' => Array('type' => 'int', 'default' => 0), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''), Index: core/units/images/image_tag_processor.php =================================================================== --- core/units/images/image_tag_processor.php (revision 13248) +++ core/units/images/image_tag_processor.php (working copy) @@ -104,9 +104,13 @@ } else { $object->SetDBField('Url', $parent_item->GetDBField('FullUrl')); - $object->SetDBField('AltName', $this->getItemTitle($parent_item)); - $object->SetDBFieldsFromHash($parent_item->GetFieldValues(), Array('SameImages', 'LocalThumb', 'ThumbPath', 'ThumbUrl', 'LocalImage', 'LocalPath')); + $object->SetDBFieldsFromHash($parent_item->GetFieldValues(), Array('AltName', 'SameImages', 'LocalThumb', 'ThumbPath', 'ThumbUrl', 'LocalImage', 'LocalPath')); + + if (!$object->GetDBField('AltName')) { + $object->SetDBField('AltName', $this->getItemTitle($parent_item)); + } + $object->Loaded = true; } Index: in-bulletin/units/posts/posts_config.php =================================================================== --- in-bulletin/units/posts/posts_config.php (revision 13241) +++ in-bulletin/units/posts/posts_config.php (working copy) @@ -65,6 +65,7 @@ '' => Array ( 'UserName' => 'IF (ISNULL(u.Login), IF (%1$s.CreatedById = -1, "root", IF (%1$s.CreatedById = -2, "Guest", "n/a")), u.Login)', + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -99,6 +100,7 @@ 'ShowSignatures' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, 'default' => 1), // for avatar image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''), Index: in-bulletin/units/topics/topics_config.php =================================================================== --- in-bulletin/units/topics/topics_config.php (revision 13241) +++ in-bulletin/units/topics/topics_config.php (working copy) @@ -255,6 +255,7 @@ 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', 'ParentPath' => TABLE_PREFIX.'Category.ParentPath', + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -331,7 +332,7 @@ 'type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array ( - 0 => 'la_Disabled', + 0 => 'la_Disabled', 1 => 'la_Active', 2 => 'la_Pending', ), @@ -450,6 +451,7 @@ ), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array ('type' => 'string', 'default' => ''), 'LocalThumb' => Array ('type' => 'string', 'default' => ''), 'ThumbPath' => Array ('type' => 'string', 'default' => ''), Index: in-commerce/units/products/products_config.php =================================================================== --- in-commerce/units/products/products_config.php (revision 13241) +++ in-commerce/units/products/products_config.php (working copy) @@ -350,6 +350,7 @@ 'TableName' => TABLE_PREFIX.'Products', 'CalculatedFields' => Array ( '' => Array ( + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -538,6 +539,7 @@ 'FileVersion' => Array(), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''), Index: in-link/units/links/links_config.php =================================================================== --- in-link/units/links/links_config.php (revision 13241) +++ in-link/units/links/links_config.php (working copy) @@ -360,6 +360,7 @@ 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', 'ParentPath' => TABLE_PREFIX.'Category.ParentPath', + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -484,6 +485,7 @@ 'ParentPath' => Array('type' => 'string', 'default' => ''), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''), Index: in-news/units/articles/articles_config.php =================================================================== --- in-news/units/articles/articles_config.php (revision 13241) +++ in-news/units/articles/articles_config.php (working copy) @@ -297,6 +297,7 @@ 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', 'ParentPath' => TABLE_PREFIX.'Category.ParentPath', + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -381,6 +382,7 @@ 'ParentPath' => Array('type' => 'string', 'default' => ''), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''),