Skip to content

Commit

Permalink
cache config_get calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Apr 8, 2009
1 parent 35759ce commit 1709383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions print_all_bug_page_word.php
Expand Up @@ -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'];
Expand Down Expand Up @@ -200,7 +201,7 @@
<?php
}
if ( !date_is_null( $t_bug->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</td>\n";
}
} else {
Expand Down Expand Up @@ -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) <span class=\"italic\">$c_date_added</span><br />$c_download_url";

if ( $t_attachment['preview'] && $t_attachment['type'] == 'image' && $f_type_page == 'html' ) {
Expand Down

0 comments on commit 1709383

Please sign in to comment.