|
From: Paul S. O. <ps...@us...> - 2002-02-25 14:59:06
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv13873/includes
Modified Files:
functions.php
Log Message:
Failed to switch to English images default if prefered language doesn't exist ...
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -r1.119 -r1.120
*** functions.php 25 Feb 2002 01:08:55 -0000 1.119
--- functions.php 25 Feb 2002 14:59:01 -0000 1.120
***************
*** 302,311 ****
}
! if ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) )
{
! while( list($key, $value) = @each($images) )
! {
! $images[$key] = str_replace("{LANG}", 'lang_' . $board_config['default_lang'], $value);
! }
}
}
--- 302,310 ----
}
! $img_lang = ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english';
!
! while( list($key, $value) = @each($images) )
{
! $images[$key] = str_replace("{LANG}", 'lang_' . $img_lang, $value);
}
}
|