diff --git a/maintenance/removeUnusedAccounts.php b/maintenance/removeUnusedAccounts.php index a507de6301f..09192fd33e6 100644 --- a/maintenance/removeUnusedAccounts.php +++ b/maintenance/removeUnusedAccounts.php @@ -9,9 +9,11 @@ * @author Rob Church */ +define( 'ACTION_REPORT', 0 ); +define( 'ACTION_DELETE', 1 ); $options = array( 'delete','help' ); require_once( 'commandLine.inc' ); -require_once( 'removeUnusedAccounts.inc' ); +require_once( 'userFunctions.inc' ); echo( "Remove Unused Accounts\nThis script will delete all users who have made no edits.\n\n" ); diff --git a/maintenance/removeUnusedAccounts.inc b/maintenance/userFunctions.inc similarity index 91% rename from maintenance/removeUnusedAccounts.inc rename to maintenance/userFunctions.inc index 0323304e8f2..8e43a6d2038 100644 --- a/maintenance/removeUnusedAccounts.inc +++ b/maintenance/userFunctions.inc @@ -1,16 +1,13 @@ */ -define( 'ACTION_REPORT', 0 ); -define( 'ACTION_DELETE', 1 ); - # Count the number of edits the specified user has made function CountEdits( $user_id ) { # We've *got* to pull this stuff off the master. If the user *has* made an edit, but it hasn't