From 39c356bf4d5c4916d53cbeed51b5e623678c7cbf Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Fri, 14 Sep 2007 05:01:13 +0000 Subject: [PATCH] * Fix initial statistics when installing: add correct values * Clarification in installation: "Initializing data" => "Initializing statistics" --- RELEASE-NOTES | 1 + config/index.php | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 295cf7ad8c..c9580a5b70 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/config/index.php b/config/index.php index b59b59d4d7..21fbf4a1b4 100644 --- a/config/index.php +++ b/config/index.php @@ -1010,12 +1010,15 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { print " done.\n"; - print "
  • Initializing data...
  • \n"; + print "
  • Initializing statistics...
  • \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') { -- 2.20.1