From 17093830cee68176e113d99ae6459d9c56965d49 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Wed, 8 Apr 2009 20:03:52 +0100 Subject: [PATCH] cache config_get calls --- print_all_bug_page_word.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/print_all_bug_page_word.php b/print_all_bug_page_word.php index 22ad04fbf5..2bcdcaf69a 100644 --- a/print_all_bug_page_word.php +++ b/print_all_bug_page_word.php @@ -86,6 +86,7 @@ $f_bug_arr = explode( ',', $f_export ); $t_count_exported = 0; $t_date_format = config_get( 'normal_date_format' ); + $t_short_date_format = config_get( 'short_date_format' ); for( $j=0; $j < $t_row_count; $j++ ) { $t_id = $result[$j]['id']; @@ -200,7 +201,7 @@ due_date ) ) { - print_date( config_get( 'short_date_format' ), $t_bug->due_date ); + print_date( $t_short_date_format, $t_bug->due_date ); print "\t\t\n"; } } else { @@ -409,7 +410,7 @@ $c_filename = string_display_line( $t_attachment['display_name'] ); $c_download_url = $t_path . $t_attachment['download_url']; $c_filesize = number_format( $t_attachment['size'] ); - $c_date_added = date( config_get( 'normal_date_format' ), $t_attachment['date_added'] ); + $c_date_added = date( $t_date_format, $t_attachment['date_added'] ); echo "$c_filename ($c_filesize) $c_date_added
$c_download_url"; if ( $t_attachment['preview'] && $t_attachment['type'] == 'image' && $f_type_page == 'html' ) {