r112877 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112876‎ | r112877 | r112878 >
Date:11:47, 2 March 2012
Author:siebrand
Status:ok
Tags:i18nreview 
Comment:
Add a few newlines.
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -70,6 +70,7 @@
7171 $wgOut->addWikiMsg( 'tpt-nosuchpage', $title->getPrefixedText() );
7272 return;
7373 }
 74+
7475 $wgOut->addModules( 'ext.translate.special.pagetranslation' );
7576
7677 if ( $action === 'discourage' || $action === 'encourage' ) {
@@ -81,12 +82,14 @@
8283 'tgr_lang' => '*priority',
8384 'tgr_state' => 'discouraged',
8485 );
 86+
8587 if ( $action === 'encourage' ) {
8688 $dbw->delete( $table, $row, __METHOD__ );
8789 } else {
8890 $index = array( 'tgr_group', 'tgr_lang' );
8991 $dbw->replace( $table, array( $index ), $row, __METHOD__ );
9092 }
 93+
9194 $this->listPages();
9295
9396 $group = MessageGroups::getGroup( $id );
@@ -106,6 +109,7 @@
107110 $logger->addEntry( 'unmark', $page->getTitle(), null, array( serialize( $params ) ) );
108111 $wgOut->addWikiMsg( 'tpt-unmarked', $title->getPrefixedText() );
109112 self::superDebug( __METHOD__, "unmarked page", $this->user, $title );
 113+
110114 return;
111115 }
112116
@@ -145,6 +149,7 @@
146150 // Non-fatal error which prevents saving
147151 if ( $error === false && $wgRequest->wasPosted() ) {
148152 $err = $this->markForTranslation( $page, $sections );
 153+
149154 if ( $err ) {
150155 call_user_func_array( array( $wgOut, 'addWikiMsg' ), $err );
151156 } else {

Status & tagging log