From: Aaron Schulz Date: Thu, 11 Dec 2008 01:28:37 +0000 (+0000) Subject: May as well set article ID in title X-Git-Tag: 1.31.0-rc.0~44044 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=bc6adff0c6e804605f5ef518b7ca4cfbc17e30b3;p=lhc%2Fweb%2Fwiklou.git May as well set article ID in title --- diff --git a/includes/Revision.php b/includes/Revision.php index 2d8ebc2094..ab017f9c06 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -319,9 +319,9 @@ class Revision { $this->mSize = intval( $row->rev_len ); if( isset( $row->page_latest ) ) { - $this->mCurrent = ( $row->rev_id == $row->page_latest ); - $this->mTitle = Title::makeTitle( $row->page_namespace, - $row->page_title ); + $this->mCurrent = ( $row->rev_id == $row->page_latest ); + $this->mTitle = Title::makeTitle( $row->page_namespace, $row->page_title ); + $this->mTitle->resetArticleID( $this->mPage ); } else { $this->mCurrent = false; $this->mTitle = null;