Merge "Adding interfaces for ORM row and table classes so these can be used for type...
[lhc/web/wiklou.git] / maintenance / checkUsernames.php
index 414d098..9b98721 100644 (file)
@@ -45,11 +45,11 @@ class CheckUsernames extends Maintenance {
                foreach ( $res as $row ) {
                        if ( ! User::isValidUserName( $row->user_name ) ) {
                                $this->error( sprintf( "%s: %6d: '%s'\n", wfWikiID(), $row->user_id, $row->user_name ) );
-                               wfDebugLog( 'checkUsernames', $out );
+                               wfDebugLog( 'checkUsernames', $row->user_name );
                        }
                }
        }
 }
 
 $maintClass = "CheckUsernames";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );