r75559 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75558‎ | r75559 | r75560 >
Date:16:32, 27 October 2010
Author:reedy
Status:ok
Tags:
Comment:
*(bug 25639) Spurious "Revision 0 does not exist!"

Can have no revid passed, which gives a 0. Missing one will still notify it doesn't exist
Modified paths:
  • /trunk/extensions/CodeReview/ui/CodeRevisionView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php
@@ -39,7 +39,10 @@
4040 return;
4141 }
4242 if ( !$this->mRev ) {
43 - $wgOut->addWikiMsg( 'code-rev-not-found', $this->mRevId );
 43+ if ( $this->mRevId !== 0 ) {
 44+ $wgOut->addWikiMsg( 'code-rev-not-found', $this->mRevId );
 45+ }
 46+
4447 $view = new CodeRevisionListView( $this->mRepo->getName() );
4548 $view->execute();
4649 return;

Follow-up revisions

RevisionCommit summaryAuthorDate
r762091.16wmf4: MFT r75559catrope18:58, 6 November 2010

Status & tagging log