summaryrefslogtreecommitdiff
path: root/maintenance/checkUsernames.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/checkUsernames.php')
-rw-r--r--maintenance/checkUsernames.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/maintenance/checkUsernames.php b/maintenance/checkUsernames.php
index 85a3d157..9b98721d 100644
--- a/maintenance/checkUsernames.php
+++ b/maintenance/checkUsernames.php
@@ -19,11 +19,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
+ * @file
* @ingroup Maintenance
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class CheckUsernames extends Maintenance {
@@ -44,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 );