From: <gi...@ma...> - 2010-03-04 08:37:00
|
The branch, master has been updated via cf99022ff6148e658e56713cecbd8735e2ef0f3f (commit) from 4f3906f6a1b332e8839997357a71ded3d771f7ce (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit cf99022ff6148e658e56713cecbd8735e2ef0f3f Author: David Hicks <hic...@op...> Date: Thu Mar 4 19:29:05 2010 +1100 test_langs.php references invalid variable names PHP errors were caused on admin/test_langs.php due to inconsistent naming of variables. ----------------------------------------------------------------------- Summary of changes: admin/test_langs.php | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) ----------------------------------------------------------------------- commit cf99022ff6148e658e56713cecbd8735e2ef0f3f Author: David Hicks <hic...@op...> Date: Thu Mar 4 19:29:05 2010 +1100 test_langs.php references invalid variable names PHP errors were caused on admin/test_langs.php due to inconsistent naming of variables. diff --git a/admin/test_langs.php b/admin/test_langs.php index ba84aac..71fdc88 100644 --- a/admin/test_langs.php +++ b/admin/test_langs.php @@ -56,18 +56,18 @@ html_page_top(); // check core language files if( function_exists( 'opendir' ) && function_exists( 'readdir' ) ) { $t_lang_files = Array(); - if( $handle = opendir( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ) ) { - while( false !== ( $file = readdir( $handle ) ) ) { - if ($file == 'strings_english.txt' ) { + if( $t_handle = opendir( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ) ) { + while( false !== ( $t_file = readdir( $t_handle ) ) ) { + if ($t_file == 'strings_english.txt' ) { echo "Testing english language file '$t_file' (phase 1)...<br />"; flush(); - checkfile( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR, $file ); + checkfile( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR, $t_file ); } - if( $file[0] != '.' && $file != 'langreadme.txt' && !is_dir( $file ) ) { - $t_lang_files[] = $file; + if( $t_file[0] != '.' && $t_file != 'langreadme.txt' && !is_dir( $t_file ) ) { + $t_lang_files[] = $t_file; } } - closedir( $handle ); + closedir( $t_handle ); } } else { ----------------------------------------------------------------------- -- Mantis Bug Tracker |