Skip to content

Commit

Permalink
Use local variable in maintenance script
Browse files Browse the repository at this point in the history
Change-Id: I0a2fa4cbe52e9f3b5c21a21951f1b40beb69978d
  • Loading branch information
umherirrender committed May 1, 2018
1 parent c66f35d commit 8614515
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintenance/ULSCompactLinksDisablePref.php
Expand Up @@ -33,7 +33,7 @@ public function __construct() {
public function execute() {
$dbr = wfGetDB( DB_REPLICA, 'vslow' );

$this->really = $this->hasOption( 'really' );
$really = $this->hasOption( 'really' );

$lastUserId = $this->getOption( 'continue', 0 );

Expand Down Expand Up @@ -79,7 +79,7 @@ public function execute() {
]
] + $actorQuery['joins'];

if ( !$this->really ) {
if ( !$really ) {
echo "\n\n" .
$dbr->selectSqlText( $tables, $fields, $conds, __METHOD__, $options, $joins ) .
"\n";
Expand All @@ -98,7 +98,7 @@ public function execute() {
$user = User::newFromId( $lastUserId );
$user->load( User::READ_LATEST );

if ( $this->really ) {
if ( $really ) {
$user->setOption( 'compact-language-links', 0 );

$user->saveSettings();
Expand Down

0 comments on commit 8614515

Please sign in to comment.