mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-23 15:57:19 +00:00
Fix fatal under MediaWiki 1.24
Change-Id: I6c989eb90878376c42f06d5da59b3473075dc3e5
This commit is contained in:
parent
5b274ffd83
commit
e7cf420d72
|
@ -23,7 +23,7 @@ class Editcount extends IncludableSpecialPage {
|
|||
$user = User::newFromName( $username );
|
||||
$username = is_object( $user ) ? $user->getName() : '';
|
||||
|
||||
$uid = $user->getId();
|
||||
$uid = ( $user instanceof User ? $user->getId() : 0 );
|
||||
|
||||
if ( $this->including() ) {
|
||||
if ( $namespace === null ) {
|
||||
|
|
Loading…
Reference in a new issue