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

This commit is contained in:
jenkins-bot 2020-01-05 09:56:53 +00:00 committed by Gerrit Code Review
commit 1bd02a0df3

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(