r53420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53419‎ | r53420 | r53421 >
Date:21:52, 17 July 2009
Author:dale
Status:deferred
Tags:
Comment:
a few more minor fixes of things lost in the SpecialUpload.php r53282 merge
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -296,6 +296,8 @@
297297 if( !$this->mForReUpload ) {
298298 $pageText = self::getInitialPageText( $this->mComment, $this->mLicense,
299299 $this->mCopyrightStatus, $this->mCopyrightSource );
 300+ } else {
 301+ $pageText = false;
300302 }
301303 $status = $this->mUpload->performUpload( $this->mComment, $pageText, $this->mWatchthis, $wgUser );
302304
@@ -1063,13 +1065,13 @@
10641066 if ( $license != '' ) {
10651067 $licensetxt = '== ' . wfMsgForContent( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
10661068 }
1067 - $pageText = '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $comment . "\n" .
 1069+ $pageText = '== ' . wfMsgForContent ( 'filedesc' ) . " ==\n" . $comment . "\n" .
10681070 '== ' . wfMsgForContent ( 'filestatus' ) . " ==\n" . $copyStatus . "\n" .
10691071 "$licensetxt" .
10701072 '== ' . wfMsgForContent ( 'filesource' ) . " ==\n" . $source ;
10711073 } else {
10721074 if ( $license != '' ) {
1073 - $filedesc = $comment == '' ? '' : '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $comment . "\n";
 1075+ $filedesc = $comment == '' ? '' : '== ' . wfMsgForContent ( 'filedesc' ) . " ==\n" . $comment . "\n";
10741076 $pageText = $filedesc .
10751077 '== ' . wfMsgForContent ( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
10761078 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r53282here it is ... the upload-api, script-server, js2 (javascript phase2) branch ...dale23:52, 14 July 2009

Status & tagging log