Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -689,6 +689,15 @@ |
690 | 690 | $options = array($options); |
691 | 691 | } |
692 | 692 | |
| 693 | + foreach( $options as $option ) { |
| 694 | + if( !in_array( $option, array( 'parse', 'parseinline', 'escape', |
| 695 | + 'escapenoentities', 'replaceafter', 'parsemag', 'content', |
| 696 | + 'language' ) ) ) { |
| 697 | + trigger_error( "wfMsgExt called with incorrect parameter $option", |
| 698 | + E_USER_WARNING ); |
| 699 | + } |
| 700 | + } |
| 701 | + |
693 | 702 | if( in_array('content', $options) ) { |
694 | 703 | $forContent = true; |
695 | 704 | $langCode = true; |