Count deleted edits when regenerating the edit count
authorRob Church <robchurch@users.mediawiki.org>
Sun, 7 Jan 2007 01:18:44 +0000 (01:18 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 7 Jan 2007 01:18:44 +0000 (01:18 +0000)
maintenance/initStats.php

index b622c3f..291de1e 100644 (file)
@@ -23,6 +23,7 @@ if( isset( $options['help'] ) ) {
 
 echo( "Counting total edits..." );
 $edits = $dbr->selectField( 'revision', 'COUNT(*)', '', $fname );
+$edits += $dbr->selectField( 'archive', 'COUNT(*)', '', $fname );
 echo( "{$edits}\nCounting number of articles..." );
 
 global $wgContentNamespaces;