mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 07:59:59 +00:00
Use variable to avoid multiple calls of $this->getServiceContainer()
Change-Id: If8ace28a7061e440801f0fea1925e294fa4e6b90
This commit is contained in:
parent
dfdbb1d686
commit
fe94aa9e2e
|
@ -379,10 +379,11 @@ EOF;
|
|||
$this->fatalError( 'No matching namespaces.' );
|
||||
}
|
||||
|
||||
$hookHelper = new HookHelper( $this->getServiceContainer()->getHookContainer() );
|
||||
$services = $this->getServiceContainer();
|
||||
$hookHelper = new HookHelper( $services->getHookContainer() );
|
||||
$search = new Search(
|
||||
$this->getServiceContainer()->getMainConfig(),
|
||||
$this->getServiceContainer()->getDBLoadBalancerFactory()
|
||||
$services->getMainConfig(),
|
||||
$services->getDBLoadBalancerFactory()
|
||||
);
|
||||
foreach ( $this->target as $index => $target ) {
|
||||
$replacement = $this->replacement[$index];
|
||||
|
|
Loading…
Reference in a new issue