r63570 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63569‎ | r63570 | r63571 >
Date:20:01, 10 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Made getLatestRevID() return an integer
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2157,7 +2157,8 @@
21582158 return $this->mLatestID;
21592159
21602160 $db = ($flags & GAID_FOR_UPDATE) ? wfGetDB(DB_MASTER) : wfGetDB(DB_SLAVE);
2161 - $this->mLatestID = $db->selectField( 'page', 'page_latest', $this->pageCond(), __METHOD__ );
 2161+ $this->mLatestID = (int)$db->selectField(
 2162+ 'page', 'page_latest', $this->pageCond(), __METHOD__ );
21622163 return $this->mLatestID;
21632164 }
21642165

Status & tagging log