Pulling back r45388 "Don't needlessly shy from reuniting lost files with their descri...
[lhc/web/wiklou.git] / maintenance / fixUserRegistration.php
index af8a68c..eb5b7f7 100644 (file)
@@ -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";
 
-?>
+