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 "Remove pointless override of doStashFile in UploadFromStash"
[lhc/web/wiklou.git]
/
maintenance
/
deleteBatch.php
diff --git
a/maintenance/deleteBatch.php
b/maintenance/deleteBatch.php
index
e8839c5
..
0020446
100644
(file)
--- a/
maintenance/deleteBatch.php
+++ b/
maintenance/deleteBatch.php
@@
-60,7
+60,7
@@
class DeleteBatch extends Maintenance {
$interval = $this->getOption( 'i', 0 );
if ( $username === false ) {
$interval = $this->getOption( 'i', 0 );
if ( $username === false ) {
- $user = User::newSystemUser( 'Delete page script',
array( 'steal' => true )
);
+ $user = User::newSystemUser( 'Delete page script',
[ 'steal' => true ]
);
} else {
$user = User::newFromName( $username );
}
} else {
$user = User::newFromName( $username );
}
@@
-102,7
+102,7
@@
class DeleteBatch extends Maintenance {
$this->output( $title->getPrefixedText() );
if ( $title->getNamespace() == NS_FILE ) {
$this->output( $title->getPrefixedText() );
if ( $title->getNamespace() == NS_FILE ) {
- $img = wfFindFile( $title,
array( 'ignoreRedirect' => true )
);
+ $img = wfFindFile( $title,
[ 'ignoreRedirect' => true ]
);
if ( $img && $img->isLocal() && !$img->delete( $reason ) ) {
$this->output( " FAILED to delete associated file... " );
}
if ( $img && $img->isLocal() && !$img->delete( $reason ) ) {
$this->output( " FAILED to delete associated file... " );
}