r76261 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76260‎ | r76261 | r76262 >
Date:18:50, 7 November 2010
Author:aaron
Status:ok (Comments)
Tags:
Comment:
Fix r44442: don't rest restriction fields
Modified paths:
  • /trunk/phase3/includes/Revision.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Revision.php
@@ -314,8 +314,7 @@
315315
316316 if( isset( $row->page_latest ) ) {
317317 $this->mCurrent = ( $row->rev_id == $row->page_latest );
318 - $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title );
319 - $this->mTitle->resetArticleID( $this->mPage );
 318+ $this->mTitle = Title::newFromRow( $row );
320319 } else {
321320 $this->mCurrent = false;
322321 $this->mTitle = null;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r44442May as well set article ID in titleaaron01:28, 11 December 2008

Comments

#Comment by Aaron Schulz (talk | contribs)   20:44, 7 November 2010

sp/rest/reset

Status & tagging log