Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -185,7 +185,6 @@ |
186 | 186 | return "$path/$file"; |
187 | 187 | } |
188 | 188 | |
189 | | - |
190 | 189 | /** |
191 | 190 | * Creates a new MessageCollection for this group. |
192 | 191 | * |
— | — | @@ -436,7 +435,6 @@ |
437 | 436 | $collection[$name]->database = $values; |
438 | 437 | } |
439 | 438 | } |
440 | | - |
441 | 439 | } |
442 | 440 | |
443 | 441 | public function getWriter() { |
— | — | @@ -445,7 +443,6 @@ |
446 | 444 | $writer->commaToArray = true; |
447 | 445 | return $writer; |
448 | 446 | } |
449 | | - |
450 | 447 | } |
451 | 448 | |
452 | 449 | class CoreMostUsedMessageGroup extends CoreMessageGroup { |
— | — | @@ -582,7 +579,6 @@ |
583 | 580 | } |
584 | 581 | } |
585 | 582 | |
586 | | - |
587 | 583 | class WikiPageMessageGroup extends WikiMessageGroup { |
588 | 584 | public $title; |
589 | 585 | |
— | — | @@ -594,7 +590,7 @@ |
595 | 591 | } |
596 | 592 | $this->title = $title; |
597 | 593 | $this->namespaces = array( NS_TRANSLATIONS, NS_TRANSLATIONS_TALK ); |
598 | | - |
| 594 | + |
599 | 595 | } |
600 | 596 | |
601 | 597 | public function getDefinitions() { |
— | — | @@ -603,7 +599,7 @@ |
604 | 600 | $vars = array( 'trs_key', 'trs_text' ); |
605 | 601 | $conds = array( 'trs_page' => $this->title->getArticleId() ); |
606 | 602 | $res = $dbr->select( $tables, $vars, $conds, __METHOD__ ); |
607 | | - |
| 603 | + |
608 | 604 | $defs = array(); |
609 | 605 | $prefix = $this->title->getPrefixedDBKey() . '/'; |
610 | 606 | $re = '~<tvar\|([^>]+)>(.*?)</>~u'; |
— | — | @@ -617,7 +613,7 @@ |
618 | 614 | ksort( $defs ); |
619 | 615 | $new_defs = array(); |
620 | 616 | foreach ( $defs as $k => $v ) $new_defs[$prefix.$k] = $v; |
621 | | - |
| 617 | + |
622 | 618 | return $new_defs; |
623 | 619 | } |
624 | 620 | |
— | — | @@ -671,10 +667,8 @@ |
672 | 668 | } |
673 | 669 | } |
674 | 670 | } |
675 | | - |
676 | 671 | } |
677 | 672 | |
678 | | - |
679 | 673 | class MessageGroups { |
680 | 674 | public static function init() { |
681 | 675 | static $loaded = false; |
— | — | @@ -691,7 +685,7 @@ |
692 | 686 | global $wgEnablePageTranslation; |
693 | 687 | if ( $wgEnablePageTranslation ) { |
694 | 688 | $dbr = wfGetDB( DB_SLAVE ); |
695 | | - |
| 689 | + |
696 | 690 | $tables = array( 'page', 'revtag', 'revtag_type' ); |
697 | 691 | $vars = array( 'page_id', 'page_namespace', 'page_title', 'rt_revision' ); |
698 | 692 | $conds = array( 'page_id=rt_page', 'rtt_id=rt_type', 'rtt_name' => 'tp:mark' ); |