Don't pass variables around if you have no need for 'em

Change-Id: Id9fe08adcd1ba14477b84b469586e56ac9376025
This commit is contained in:
Jack Phoenix 2020-01-02 06:31:13 +02:00
parent 7c5a40c3b8
commit 71da36ea9c

View file

@ -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(