X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixUserRegistration.php;h=eb5b7f7df317cafc083deabb8946220c6096a7e7;hb=5c58613f4d77fa214830caced95948e057c0c69e;hp=af8a68c2b0013f36e35e2cec99f09a795f8bf63e;hpb=7adbeb56156951c2ac37c45d9e13cc5c606f3996;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php index af8a68c2b0..eb5b7f7df3 100644 --- a/maintenance/fixUserRegistration.php +++ b/maintenance/fixUserRegistration.php @@ -2,14 +2,17 @@ /** * Fix the user_registration field. * In particular, for values which are NULL, set them to the date of the first edit + * + * @file + * @ingroup Maintenance */ require_once( 'commandLine.inc' ); $fname = 'fixUserRegistration.php'; -$dbr =& wfGetDB( DB_SLAVE ); -$dbw =& wfGetDB( DB_MASTER ); +$dbr = wfGetDB( DB_SLAVE ); +$dbw = wfGetDB( DB_MASTER ); // Get user IDs which need fixing $res = $dbr->select( 'user', 'user_id', 'user_registration IS NULL', $fname ); @@ -28,4 +31,4 @@ while ( $row = $dbr->fetchObject( $res ) ) { } print "\n"; -?> +