mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-23 22:46:17 +00:00
Don't pass variables around if you have no need for 'em
Change-Id: Id9fe08adcd1ba14477b84b469586e56ac9376025
This commit is contained in:
parent
7c5a40c3b8
commit
71da36ea9c
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue