Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -755,7 +755,7 @@ |
756 | 756 | return $this->getDefinitions(); |
757 | 757 | } |
758 | 758 | |
759 | | - else return array(); |
| 759 | + return array(); |
760 | 760 | } |
761 | 761 | |
762 | 762 | /** |
— | — | @@ -769,9 +769,6 @@ |
770 | 770 | public function getMessage( $key, $code ) { |
771 | 771 | if ( $code === 'en' ) { |
772 | 772 | $stuff = $this->load( 'en' ); |
773 | | - if ( !isset( $stuff[$key] ) ) { |
774 | | - wfWarn( __METHOD__ . " called for unknown key $key from " . wfGetAllCallers( 6 ) ); |
775 | | - } |
776 | 773 | return isset( $stuff[$key] ) ? $stuff[$key] : null; |
777 | 774 | } |
778 | 775 | |