From: <pri...@us...> - 2007-11-24 13:50:20
|
Revision: 4790 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=4790&view=rev Author: prichards Date: 2007-11-24 05:50:15 -0800 (Sat, 24 Nov 2007) Log Message: ----------- Fix: 0008569: Errors when default language = auto ? Modified Paths: -------------- trunk/mantisbt/core/email_api.php Modified: trunk/mantisbt/core/email_api.php =================================================================== --- trunk/mantisbt/core/email_api.php 2007-11-24 13:34:29 UTC (rev 4789) +++ trunk/mantisbt/core/email_api.php 2007-11-24 13:50:15 UTC (rev 4790) @@ -726,7 +726,11 @@ } # @@@ should this be the current language (for the recipient) or the default one (for the user running the command) (thraxisp) - $mail->SetLanguage( lang_get( 'phpmailer_language', config_get( 'default_language' ) ), PHPMAILER_PATH . 'language' . DIRECTORY_SEPARATOR ); + $t_lang = config_get( 'default_language' ); + if ( 'auto' == $t_lang ) { + $t_lang = config_get( 'fallback_language'); + } + $mail->SetLanguage( lang_get( 'phpmailer_language', $t_lang ), PHPMAILER_PATH . 'language' . DIRECTORY_SEPARATOR ); # Select the method to send mail switch ( config_get( 'phpMailer_method' ) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |