From: Ævar Arnfjörð Bjarmason Date: Thu, 7 Jul 2005 14:44:37 +0000 (+0000) Subject: * Using $fname rather than hardcoding wfSpecialStatistics X-Git-Tag: 1.5.0beta4~208 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=cd25b0ac9aaee102128c0ded2e51dfb67a249da5;p=lhc%2Fweb%2Fwiklou.git * Using $fname rather than hardcoding wfSpecialStatistics --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index d9acfd00e9..5e45cc0e20 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -17,7 +17,7 @@ function wfSpecialStatistics() { $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'site_stats', 'user', 'user_groups' ) ); - $row = $dbr->selectRow( 'site_stats', '*', false, 'wfSpecialStatistics' ); + $row = $dbr->selectRow( 'site_stats', '*', false, $fname ); $views = $row->ss_total_views; $edits = $row->ss_total_edits; $good = $row->ss_good_articles; @@ -27,7 +27,7 @@ function wfSpecialStatistics() { # Update schema $u = new SiteStatsUpdate( 0, 0, 0 ); $u->doUpdate(); - $row = $dbr->selectRow( 'site_stats', '*', false, 'wfSpecialStatistics' ); + $row = $dbr->selectRow( 'site_stats', '*', false, $fname ); } if ( isset( $row->ss_total_pages ) ) {