From 8ccf3146e299bea718595ab96c2eba5be7ba268c Mon Sep 17 00:00:00 2001 From: David Hicks Date: Sun, 27 Sep 2009 00:40:04 +1000 Subject: [PATCH] Cache use of lang_get within loop on print_all_bug_page_word.php This fixes a possible performance hit introduced in 94902e74c919f1341ab62a7c3b10f7b0ecf53689. Cache the result of a lang_get() call once, and use the variable within the loop. We don't want to make many expensive calls to lang_get() if it can be avoided. --- print_all_bug_page_word.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/print_all_bug_page_word.php b/print_all_bug_page_word.php index 497122ac3d..b9b7b7efb6 100644 --- a/print_all_bug_page_word.php +++ b/print_all_bug_page_word.php @@ -86,6 +86,7 @@ $t_date_format = config_get( 'normal_date_format' ); $t_short_date_format = config_get( 'short_date_format' ); + $t_lang_bug_view_title = lang_get( 'bug_view_title' ); $t_lang_id = lang_get( 'id' ); $t_lang_category = lang_get( 'category' ); $t_lang_severity = lang_get( 'severity' ); @@ -148,7 +149,7 @@
- +