Index: trunk/extensions/Translate/groups/ComplexMessages.php |
— | — | @@ -489,7 +489,10 @@ |
490 | 490 | } |
491 | 491 | |
492 | 492 | public function highlight( $key, $values ) { |
493 | | - if ( count( $values ) ) $values[0] = "<b>$values[0]</b>"; |
| 493 | + if ( count( $values ) ) { |
| 494 | + if ( !isset($values[0]) ) throw new MWException( "Something missing from values: " . print_rt( $values, true ) ); |
| 495 | + $values[0] = "<b>$values[0]</b>"; |
| 496 | + } |
494 | 497 | return $values; |
495 | 498 | } |
496 | 499 | |
— | — | @@ -567,8 +570,9 @@ |
568 | 571 | |
569 | 572 | public function __construct( $code ) { |
570 | 573 | parent::__construct( $code ); |
571 | | - $this->data['MediaWiki Core'] = array( |
572 | | - 'var' => 'namespaceNames', |
| 574 | + $this->data['core'] = array( |
| 575 | + 'label'=> 'MediaWiki Core', |
| 576 | + 'var' => 'namespaceNames', |
573 | 577 | 'file' => Language::getMessagesFileName( '%CODE%' ), |
574 | 578 | 'code' => false, |
575 | 579 | ); |