Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -769,7 +769,10 @@ |
770 | 770 | public function getMessage( $key, $code ) { |
771 | 771 | if ( $code === 'en' ) { |
772 | 772 | $stuff = $this->load( 'en' ); |
773 | | - return $stuff[$key]; |
| 773 | + if ( !isset( $stuff[$key] ) ) { |
| 774 | + wfWarn( __METHOD__ . " called for unknown key $key from " . wfGetAllCallers( 6 ) ); |
| 775 | + } |
| 776 | + return isset( $stuff[$key] ) ? $stuff[$key] : null; |
774 | 777 | } |
775 | 778 | |
776 | 779 | $title = Title::makeTitleSafe( $this->namespaces[0], "$key/$code" ); |