Index: trunk/phase3/config/index.php |
— | — | @@ -1010,12 +1010,15 @@ |
1011 | 1011 | |
1012 | 1012 | print " done.</li>\n"; |
1013 | 1013 | |
1014 | | - print "<li>Initializing data...</li>\n"; |
| 1014 | + print "<li>Initializing statistics...</li>\n"; |
1015 | 1015 | $wgDatabase->insert( 'site_stats', |
1016 | 1016 | array ( 'ss_row_id' => 1, |
1017 | 1017 | 'ss_total_views' => 0, |
1018 | | - 'ss_total_edits' => 0, |
1019 | | - 'ss_good_articles' => 0 ) ); |
| 1018 | + 'ss_total_edits' => 1, # Main page first edit |
| 1019 | + 'ss_good_articles' => 0, # Main page is not a good article - no internal link |
| 1020 | + 'ss_total_pages' => 1, # Main page |
| 1021 | + 'ss_users' => $conf->SysopName ? 1 : 0, # Sysop account, if created |
| 1022 | + 'ss_images' => 0 ) ); |
1020 | 1023 | |
1021 | 1024 | # Set up the "regular user" account *if we can, and if we need to* |
1022 | 1025 | if( $conf->Root and $conf->DBtype == 'mysql') { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -50,6 +50,7 @@ |
51 | 51 | * (bug 10699) Fix for MySQL phrase search |
52 | 52 | * (bug 11321) Fix width of gallerybox when option "width=xxx" is used |
53 | 53 | * (bug 7890) Special:BrokenRedirects links deleted redirects to a non-existent page |
| 54 | +* Fix initial statistics when installing: add correct values |
54 | 55 | |
55 | 56 | === API changes in 1.12 === |
56 | 57 | |