r47828 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47827‎ | r47828 | r47829 >
Date:11:33, 26 February 2009
Author:werdna
Status:ok
Tags:
Comment:
Use getId() instead of mId in getEditCount(), so it works with unloaded user objects
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2020,7 +2020,7 @@
20212021 * @return \int User'e edit count
20222022 */
20232023 function getEditCount() {
2024 - if ($this->mId) {
 2024+ if ($this->getId()) {
20252025 if ( !isset( $this->mEditCount ) ) {
20262026 /* Populate the count, if it has not been populated yet */
20272027 $this->mEditCount = User::edits($this->mId);

Status & tagging log