* Die gracefully if php has not been compiled with --enable-memory-limit
[lhc/web/wiklou.git] / maintenance / userDupes.inc
index 10704df..c2fc6b1 100644 (file)
@@ -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 ),