dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88075a3
)
Use getId() instead of mId in getEditCount(), so it works with unloaded user objects
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 26 Feb 2009 11:33:23 +0000
(11:33 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 26 Feb 2009 11:33:23 +0000
(11:33 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
cc57c2b
..
4289b2a
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2020,7
+2020,7
@@
class User {
* @return \int User'e edit count
*/
function getEditCount() {
- if ($this->
mId
) {
+ if ($this->
getId()
) {
if ( !isset( $this->mEditCount ) ) {
/* Populate the count, if it has not been populated yet */
$this->mEditCount = User::edits($this->mId);