From 9b04b73cb7ecfa859d47e1ac177b6e7c6d4fcc83 Mon Sep 17 00:00:00 2001 From: Gianluca Sforna Date: Thu, 12 Jul 2007 08:13:02 +0000 Subject: [PATCH] XHTML validation fix. provide "alt" property on icons and attached images git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4429 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core/file_api.php | 7 ++++--- core/print_api.php | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/file_api.php b/core/file_api.php index 0335134a5a..55199d238c 100644 --- a/core/file_api.php +++ b/core/file_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: file_api.php,v 1.80 2007-07-06 22:29:53 giallu Exp $ + # $Id: file_api.php,v 1.81 2007-07-12 08:13:02 giallu Exp $ # -------------------------------------------------------- $t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR; @@ -255,14 +255,15 @@ function swap_content( span ) { } $t_preview_style = 'style="' . $t_preview_style . '"'; + $t_title = file_get_field( $v_id, 'title' ); - PRINT "
$t_href_start$t_href_end"; + PRINT "\n
$t_href_start\"$t_title\"$t_href_end"; $image_previewed = true; } } if ( $i != ( $num_files - 1 ) ) { - PRINT '
'; + PRINT "
\n"; } } } diff --git a/core/print_api.php b/core/print_api.php index e78d7fddda..c83ff38d4b 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: print_api.php,v 1.169 2007-07-09 22:41:23 giallu Exp $ + # $Id: print_api.php,v 1.170 2007-07-12 08:13:02 giallu Exp $ # -------------------------------------------------------- $t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR; @@ -1528,7 +1528,8 @@ function print_file_icon( $p_filename ) { } $t_name = $t_file_type_icons[$ext]; - PRINT ''; + PRINT '' . $ext . ' file icon'; } # --------------------