X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FuserDupes.inc;h=c2fc6b1502dc1478a20b98db8b33cd4026d8d071;hb=3c0245f03c43e82e07a9b7e25b045f36cacd2363;hp=10704dff016bda980855645f7990f2437eb93d64;hpb=a847cae08d9494b34c4dcd08ad38d4c7d8a38b58;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/userDupes.inc b/maintenance/userDupes.inc index 10704dff01..c2fc6b1502 100644 --- a/maintenance/userDupes.inc +++ b/maintenance/userDupes.inc @@ -160,8 +160,7 @@ class UserDupes { * @access private */ function newSchema() { - global $wgVersion; - return version_compare( $wgVersion, '1.5alpha', 'ge' ); + return class_exists( 'Revision' ); } /** @@ -273,7 +272,7 @@ class UserDupes { */ function editCountOn( $table, $field, $userid ) { $fname = 'UserDupes::editCountOn'; - return IntVal( $this->db->selectField( + return intval( $this->db->selectField( $table, 'COUNT(*)', array( $field => $userid ),