From 8614515a7cfe4d7f9031f41c7af10e6063891a2c Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 1 May 2018 21:58:31 +0200 Subject: [PATCH] Use local variable in maintenance script Change-Id: I0a2fa4cbe52e9f3b5c21a21951f1b40beb69978d --- maintenance/ULSCompactLinksDisablePref.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/ULSCompactLinksDisablePref.php b/maintenance/ULSCompactLinksDisablePref.php index 9e1e9592..00d4ed48 100644 --- a/maintenance/ULSCompactLinksDisablePref.php +++ b/maintenance/ULSCompactLinksDisablePref.php @@ -33,7 +33,7 @@ class ULSCompactLinksDisablePref extends Maintenance { public function execute() { $dbr = wfGetDB( DB_REPLICA, 'vslow' ); - $this->really = $this->hasOption( 'really' ); + $really = $this->hasOption( 'really' ); $lastUserId = $this->getOption( 'continue', 0 ); @@ -79,7 +79,7 @@ class ULSCompactLinksDisablePref extends Maintenance { ] ] + $actorQuery['joins']; - if ( !$this->really ) { + if ( !$really ) { echo "\n\n" . $dbr->selectSqlText( $tables, $fields, $conds, __METHOD__, $options, $joins ) . "\n"; @@ -98,7 +98,7 @@ class ULSCompactLinksDisablePref extends Maintenance { $user = User::newFromId( $lastUserId ); $user->load( User::READ_LATEST ); - if ( $this->really ) { + if ( $really ) { $user->setOption( 'compact-language-links', 0 ); $user->saveSettings();