r25844 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25843‎ | r25844 | r25845 >
Date:05:01, 14 September 2007
Author:rotem
Status:old
Tags:
Comment:
* Fix initial statistics when installing: add correct values
* Clarification in installation: "Initializing data" => "Initializing statistics"
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/config/index.php (modified) (history)

Diff [purge]

Index: trunk/phase3/config/index.php
@@ -1010,12 +1010,15 @@
10111011
10121012 print " done.</li>\n";
10131013
1014 - print "<li>Initializing data...</li>\n";
 1014+ print "<li>Initializing statistics...</li>\n";
10151015 $wgDatabase->insert( 'site_stats',
10161016 array ( 'ss_row_id' => 1,
10171017 '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 ) );
10201023
10211024 # Set up the "regular user" account *if we can, and if we need to*
10221025 if( $conf->Root and $conf->DBtype == 'mysql') {
Index: trunk/phase3/RELEASE-NOTES
@@ -50,6 +50,7 @@
5151 * (bug 10699) Fix for MySQL phrase search
5252 * (bug 11321) Fix width of gallerybox when option "width=xxx" is used
5353 * (bug 7890) Special:BrokenRedirects links deleted redirects to a non-existent page
 54+* Fix initial statistics when installing: add correct values
5455
5556 === API changes in 1.12 ===
5657

Follow-up revisions

RevisionCommit summaryAuthorDate
r25849Merged revisions 25804-25848 via svnmerge from...david06:54, 14 September 2007

Status & tagging log