summaryrefslogtreecommitdiff
path: root/maintenance/removeUnusedAccounts.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
commitcecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch)
tree17266aa237742640aabee7856f0202317a45d540 /maintenance/removeUnusedAccounts.php
parent0bac06c301f2a83edb0236e4c2434da16848d549 (diff)
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert kleine Korrekturen am Design
Diffstat (limited to 'maintenance/removeUnusedAccounts.php')
-rw-r--r--maintenance/removeUnusedAccounts.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/maintenance/removeUnusedAccounts.php b/maintenance/removeUnusedAccounts.php
index 33b9a0c1..42c5f059 100644
--- a/maintenance/removeUnusedAccounts.php
+++ b/maintenance/removeUnusedAccounts.php
@@ -4,8 +4,7 @@
* Remove unused user accounts from the database
* An unused account is one which has made no edits
*
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
* @author Rob Church <robchur@gmail.com>
*/
@@ -27,7 +26,7 @@ if( isset( $options['help'] ) ) {
# Do an initial scan for inactive accounts and report the result
echo( "Checking for unused user accounts...\n" );
$del = array();
-$dbr =& wfGetDB( DB_SLAVE );
+$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'user', array( 'user_id', 'user_name' ), '', $fname );
while( $row = $dbr->fetchObject( $res ) ) {
# Check the account, but ignore it if it's the primary administrator
@@ -43,7 +42,7 @@ echo( "...found {$count}.\n" );
# If required, go back and delete each marked account
if( $count > 0 && isset( $options['delete'] ) ) {
echo( "\nDeleting inactive accounts..." );
- $dbw =& wfGetDB( DB_MASTER );
+ $dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'user', array( 'user_id' => $del ), $fname );
echo( "done.\n" );
# Update the site_stats.ss_users field