Skip to content

Commit

Permalink
* view_all_inc.php:
Browse files Browse the repository at this point in the history
   Added new ALT and TITLE tags to attachment indicator.
* core/file_api.php:
   (file_bug_has_attachments) Return number of attachments instead of TRUE.
* lang/strings_english.txt:
   Added s_attachments and s_attachment_alt (used in view_all_inc.php)
* lang/strings_german.txt:
   Added s_attachments and s_attachment_alt (used in view_all_inc.php)


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2136 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
int2str committed Mar 31, 2003
1 parent cdaf64b commit ec3ad0a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions core/file_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: file_api.php,v 1.33 2003-03-27 22:34:05 int2str Exp $
# $Id: file_api.php,v 1.34 2003-03-31 22:21:06 int2str Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -34,7 +34,7 @@ function file_bug_has_attachments( $p_bug_id ) {
$result = db_query( $query );

if ( 0 < db_num_rows( $result ) )
return TRUE;
return db_num_rows( $result );

return FALSE;
}
Expand Down
9 changes: 6 additions & 3 deletions lang/strings_english.txt
Expand Up @@ -9,11 +9,11 @@
###########################################################################
# English strings for Mantis
# -------------------------------------------------
# $Revision: 1.131 $
# $Revision: 1.132 $
# $Author: int2str $
# $Date: 2003-03-12 18:27:13 $
# $Date: 2003-03-31 22:21:06 $
#
# $Id: strings_english.txt,v 1.131 2003-03-12 18:27:13 int2str Exp $
# $Id: strings_english.txt,v 1.132 2003-03-31 22:21:06 int2str Exp $
###########################################################################
?>
<?php
Expand Down Expand Up @@ -857,4 +857,7 @@
$s_hide_status = 'Hide Status';
$s_filter_closed = "Closed";
$s_filter_resolved = "Resolved";

$s_attachments = "attachment(s)";
$s_attachment_alt = "A";
?>
9 changes: 6 additions & 3 deletions lang/strings_german.txt
Expand Up @@ -11,11 +11,11 @@
# German: Matthias Bauer, mantis-de@moeffju.de
# German: Andre Eisenbach, andre@eisenbach.com
# -------------------------------------------------
# $Revision: 1.68 $
# $Revision: 1.69 $
# $Author: int2str $
# $Date: 2003-03-18 21:33:51 $
# $Date: 2003-03-31 22:21:10 $
#
# $Id: strings_german.txt,v 1.68 2003-03-18 21:33:51 int2str Exp $
# $Id: strings_german.txt,v 1.69 2003-03-31 22:21:10 int2str Exp $
###########################################################################
?>
<?php
Expand Down Expand Up @@ -859,4 +859,7 @@
$s_hide_status = "Status ausblenden";
$s_filter_closed = "Geschlossen";
$s_filter_resolved = "Erledigt";

$s_attachments = "Angeh�ngte Datei(en)";
$s_attachment_alt = "D";
?>
7 changes: 5 additions & 2 deletions view_all_inc.php
Expand Up @@ -373,9 +373,12 @@

if ( ON == $t_show_attachments ) {
echo '<td class="center">';
if ( TRUE == $t_has_attachments ) {
if ( FALSE != $t_has_attachments ) {
echo '<a href="' . string_get_bug_view_url( $v_id ) . '#attachments">';
echo '<img border="0" src="' . config_get( 'icon_path' ) . 'attachment.png' . '" alt="" />';
echo '<img border="0" src="' . config_get( 'icon_path' ) . 'attachment.png' . '"';
echo ' alt="' . lang_get( 'attachment_alt' ) . '"';
echo ' title="' . $t_has_attachments . ' ' . lang_get( 'attachments' ) . '"';
echo ' />';
echo '</a>';
} else {
echo '&nbsp;';
Expand Down

0 comments on commit ec3ad0a

Please sign in to comment.