https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112175
Revision: 112175
Author: pgehres
Date: 2012-02-23 01:11:05 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
A few little changes for khorn. FU r112171
Modified Paths:
--------------
trunk/extensions/DonationInterface/gateway_common/DataValidator.php
Modified: trunk/extensions/DonationInterface/gateway_common/DataValidator.php
===================================================================
--- trunk/extensions/DonationInterface/gateway_common/DataValidator.php
2012-02-23 01:02:38 UTC (rev 112174)
+++ trunk/extensions/DonationInterface/gateway_common/DataValidator.php
2012-02-23 01:11:05 UTC (rev 112175)
@@ -238,6 +238,7 @@
* @return boolean - true if message exists, otherwise false.
*/
public static function wmfMessageExists( $msg_key, $language ){
+ $language = strtolower( $language );
if ( wfMessage( $msg_key )->inLanguage( $language )->exists() ){
# if we are looking for English, we already know the
answer
if ( $language == 'en' ){
@@ -264,9 +265,7 @@
* @return String the text of the first existant message
* @throws MWException if no message keys are specified
*/
- public static function wfLangSpecificFallback( $language /*...*/ ){
- $msg_keys = func_get_args();
- array_shift( $msg_keys );
+ public static function wfLangSpecificFallback( $language='en',
$msg_keys=array() ){
if ( count( $msg_keys ) < 1 ){
throw new MWException( __FUNCTION__ . " BAD PROGRAMMER.
No message keys given." );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs