Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19678/core
Modified Files:
print_api.php
Log Message:
performance optimizations
- move config_get out of main loop in print_user_option_list
Index: print_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- print_api.php 23 May 2005 13:17:54 -0000 1.132
+++ print_api.php 23 May 2005 13:53:30 -0000 1.133
@@ -174,12 +174,14 @@
$t_display = array();
$t_sort = array();
+ $t_show_realname = ( ON == config_get( 'show_realname' ) );
+ $t_sort_by_last_name = ( ON == config_get( 'sort_by_last_name'
) );
foreach ( $t_users as $t_user ) {
$t_user_name = string_attribute( $t_user['username'] );
$t_sort_name = $t_user_name;
- if ( ( isset( $t_user['realname'] ) ) && (
$t_user['realname'] <> "" ) && ( ON == config_get( 'show_realname' ) ) ){
+ if ( $t_show_realname && ( $t_user['realname'] <> "" )
){
$t_user_name = string_attribute(
$t_user['realname'] );
- if ( ON == config_get( 'sort_by_last_name') ) {
+ if ( $t_sort_by_last_name ) {
$t_sort_name_bits = split( ' ',
strtolower( $t_user_name ), 2 );
$t_sort_name = $t_sort_name_bits[1] .
', ' . $t_sort_name_bits[1];
} else {
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|