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
WLFilters: set default values
[lhc/web/wiklou.git]
/
maintenance
/
fixDoubleRedirects.php
diff --git
a/maintenance/fixDoubleRedirects.php
b/maintenance/fixDoubleRedirects.php
index
1d6f31d
..
8c9faca
100644
(file)
--- a/
maintenance/fixDoubleRedirects.php
+++ b/
maintenance/fixDoubleRedirects.php
@@
-42,8
+42,8
@@
class FixDoubleRedirects extends Maintenance {
}
public function execute() {
}
public function execute() {
- $async = $this->
getOption( 'async', false
);
- $dryrun = $this->
getOption( 'dry-run', false
);
+ $async = $this->
hasOption( 'async'
);
+ $dryrun = $this->
hasOption( 'dry-run'
);
if ( $this->hasOption( 'title' ) ) {
$title = Title::newFromText( $this->getOption( 'title' ) );
if ( $this->hasOption( 'title' ) ) {
$title = Title::newFromText( $this->getOption( 'title' ) );
@@
-72,7
+72,7
@@
class FixDoubleRedirects extends Maintenance {
'rd_from = pa.page_id',
'rd_namespace = pb.page_namespace',
'rd_title = pb.page_title',
'rd_from = pa.page_id',
'rd_namespace = pb.page_namespace',
'rd_title = pb.page_title',
- 'rd_interwiki IS NULL OR rd_interwiki = ' . $dbr->addQuotes( '' ), //
bug 40
352
+ 'rd_interwiki IS NULL OR rd_interwiki = ' . $dbr->addQuotes( '' ), //
T42
352
'pb.page_is_redirect' => 1,
];
'pb.page_is_redirect' => 1,
];