mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-14 18:54:47 +00:00
Merge "Don't pass variables around if you have no need for 'em"
This commit is contained in:
commit
1bd02a0df3
|
@ -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