From: Rotem Liss Date: Fri, 14 Sep 2007 05:01:13 +0000 (+0000) Subject: * Fix initial statistics when installing: add correct values X-Git-Tag: 1.31.0-rc.0~51394 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=39c356bf4d5c4916d53cbeed51b5e623678c7cbf;p=lhc%2Fweb%2Fwiklou.git * Fix initial statistics when installing: add correct values * Clarification in installation: "Initializing data" => "Initializing statistics" --- 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') {