Remove unused non-global $wgUser in wfTest

Bug: T248550
Change-Id: I994bd6158012461efbb238c7a869fa8e642bca96
This commit is contained in:
DannyS712 2020-09-11 18:33:55 +00:00
parent ee3df023e7
commit b3252601a3

View file

@ -51,7 +51,6 @@ class WfTest extends Maintenance {
$offset = $this->getOption( 'offset', 0 ); $offset = $this->getOption( 'offset', 0 );
$length = $this->getOption( 'length', PHP_INT_MAX ); $length = $this->getOption( 'length', PHP_INT_MAX );
$userName = $this->getOption( 'user', 'Maintenance script' ); $userName = $this->getOption( 'user', 'Maintenance script' );
$wgUser = User::newFromName( $userName );
$allEquations = self::getMathTagsFromPage( $page ); $allEquations = self::getMathTagsFromPage( $page );
if ( !is_array( $allEquations ) ) { if ( !is_array( $allEquations ) ) {
echo "Could not get equations from page '$page'\n"; echo "Could not get equations from page '$page'\n";