From 71da36ea9c1e763d2335a75a0b89e21b9683c1e2 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Thu, 2 Jan 2020 06:31:13 +0200 Subject: [PATCH] Don't pass variables around if you have no need for 'em Change-Id: Id9fe08adcd1ba14477b84b469586e56ac9376025 --- includes/AJAXPoll.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/AJAXPoll.class.php b/includes/AJAXPoll.class.php index 17ce611..cc319ed 100644 --- a/includes/AJAXPoll.class.php +++ b/includes/AJAXPoll.class.php @@ -118,7 +118,7 @@ class AJAXPoll { switch ( $lines[0] ) { case 'STATS': - $ret = self::buildStats( $id, $userName ); + $ret = self::buildStats(); break; default: $ret = Html::rawElement( 'div', @@ -133,7 +133,7 @@ class AJAXPoll { return $ret; } - private static function buildStats( $id, $userName ) { + private static function buildStats() { $dbr = wfGetDB( DB_REPLICA ); $res = $dbr->select(