Stop doing $that = $this in includes/changes

Closures support $this as of PHP 5.4

Change-Id: I6bf728bf5c2222fd43945ec7a60a5f29efd42f0c
This commit is contained in:
Ricordisamoa 2016-02-11 00:25:29 +01:00
parent e089a5c023
commit 02a32c1c7a

View file

@ -491,10 +491,9 @@ class ChangesList extends ContextSource {
return '';
}
$cache = $this->watchMsgCache;
$that = $this;
return $cache->getWithSetCallback( $count, $cache::TTL_INDEFINITE,
function () use ( $that, $count ) {
return $that->msg( 'number_of_watching_users_RCview' )
function () use ( $count ) {
return $this->msg( 'number_of_watching_users_RCview' )
->numParams( $count )->escaped();
}
);