* @access private
*/
function newSchema() {
- global $wgVersion;
- return version_compare( $wgVersion, '1.5alpha', 'ge' );
+ return class_exists( 'Revision' );
}
/**
*/
function editCountOn( $table, $field, $userid ) {
$fname = 'UserDupes::editCountOn';
- return IntVal( $this->db->selectField(
+ return intval( $this->db->selectField(
$table,
'COUNT(*)',
array( $field => $userid ),