From cd25b0ac9aaee102128c0ded2e51dfb67a249da5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 7 Jul 2005 14:44:37 +0000 Subject: [PATCH] * Using $fname rather than hardcoding wfSpecialStatistics --- includes/SpecialStatistics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ) { -- 2.20.1