* Fix initial statistics when installing: add correct values
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 14 Sep 2007 05:01:13 +0000 (05:01 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 14 Sep 2007 05:01:13 +0000 (05:01 +0000)
* Clarification in installation: "Initializing data" => "Initializing statistics"

RELEASE-NOTES
config/index.php

index 295cf7a..c9580a5 100644 (file)
@@ -50,6 +50,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 10699) Fix for MySQL phrase search
 * (bug 11321) Fix width of gallerybox when option "width=xxx" is used
 * (bug 7890) Special:BrokenRedirects links deleted redirects to a non-existent page
+* Fix initial statistics when installing: add correct values
 
 === API changes in 1.12 ===
 
index b59b59d..21fbf4a 100644 (file)
@@ -1010,12 +1010,15 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
 
                        print " done.</li>\n";
 
-                       print "<li>Initializing data...</li>\n";
+                       print "<li>Initializing statistics...</li>\n";
                        $wgDatabase->insert( 'site_stats',
                                array ( 'ss_row_id'        => 1,
                                                'ss_total_views'   => 0,
-                                               'ss_total_edits'   => 0,
-                                               'ss_good_articles' => 0 ) );
+                                               'ss_total_edits'   => 1, # Main page first edit
+                                               'ss_good_articles' => 0, # Main page is not a good article - no internal link
+                                               'ss_total_pages'   => 1, # Main page
+                                               'ss_users'         => $conf->SysopName ? 1 : 0, # Sysop account, if created
+                                               'ss_images'        => 0 ) );
 
                        # Set up the "regular user" account *if we can, and if we need to*
                        if( $conf->Root and $conf->DBtype == 'mysql') {