dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "syncFileBackend.php: ellapsed => elapsed"
[lhc/web/wiklou.git]
/
maintenance
/
moveBatch.php
diff --git
a/maintenance/moveBatch.php
b/maintenance/moveBatch.php
index
8645ab1
..
3c29689
100644
(file)
--- a/
maintenance/moveBatch.php
+++ b/
maintenance/moveBatch.php
@@
-76,7
+76,7
@@
class MoveBatch extends Maintenance {
$this->error( "Unable to read file, exiting", true );
}
if ( $user === false ) {
$this->error( "Unable to read file, exiting", true );
}
if ( $user === false ) {
- $wgUser = User::newSystemUser( 'Move page script',
array( 'steal' => true )
);
+ $wgUser = User::newSystemUser( 'Move page script',
[ 'steal' => true ]
);
} else {
$wgUser = User::newFromName( $user );
}
} else {
$wgUser = User::newFromName( $user );
}
@@
-110,7
+110,7
@@
class MoveBatch extends Maintenance {
$mp = new MovePage( $source, $dest );
$status = $mp->move( $wgUser, $reason, !$noredirects );
if ( !$status->isOK() ) {
$mp = new MovePage( $source, $dest );
$status = $mp->move( $wgUser, $reason, !$noredirects );
if ( !$status->isOK() ) {
- $this->output( "\nFAILED: " . $status->getWikiText() );
+ $this->output( "\nFAILED: " . $status->getWikiText(
false, false, 'en'
) );
}
$this->commitTransaction( $dbw, __METHOD__ );
$this->output( "\n" );
}
$this->commitTransaction( $dbw, __METHOD__ );
$this->output( "\n" );