WARNING: HUGE COMMIT
[lhc/web/wiklou.git] / maintenance / updateArticleCount.php
index 112274d..a24984a 100644 (file)
@@ -1,11 +1,10 @@
 <?php
-
 /**
  * Maintenance script to provide a better count of the number of articles
  * and update the site statistics table, if desired
  *
- * @package MediaWiki
- * @subpackage Maintenance
+ * @file
+ * @ingroup Maintenance
  * @author Rob Church <robchur@gmail.com>
  */
 
@@ -28,7 +27,7 @@ if( $result !== false ) {
        echo( "found {$result}.\n" );
        if( isset( $options['update'] ) && $options['update'] ) {
                echo( "Updating site statistics table... " );
-               $dbw =& wfGetDB( DB_MASTER );
+               $dbw = wfGetDB( DB_MASTER );
                $dbw->update( 'site_stats', array( 'ss_good_articles' => $result ), array( 'ss_row_id' => 1 ), __METHOD__ );
                echo( "done.\n" );
        } else {
@@ -39,4 +38,3 @@ if( $result !== false ) {
 }
 echo( "\n" );
 
-?>
\ No newline at end of file