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
Cast namespaceId to int in SpecialEditWatchlist::cleanupWatchlist
[lhc/web/wiklou.git]
/
maintenance
/
cleanupCaps.php
diff --git
a/maintenance/cleanupCaps.php
b/maintenance/cleanupCaps.php
index
e0a0f49
..
641250d
100644
(file)
--- a/
maintenance/cleanupCaps.php
+++ b/
maintenance/cleanupCaps.php
@@
-42,7
+42,7
@@
class CapsCleanup extends TableCleanup {
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
- $this->
mDescription = "Script to cleanup capitalization"
;
+ $this->
addDescription( 'Script to cleanup capitalization' )
;
$this->addOption( 'namespace', 'Namespace number to run caps cleanup on', false, true );
}
$this->addOption( 'namespace', 'Namespace number to run caps cleanup on', false, true );
}
@@
-53,16
+53,16
@@
class CapsCleanup extends TableCleanup {
$this->error( "\$wgCapitalLinks is on -- no need for caps links cleanup.", true );
}
$this->error( "\$wgCapitalLinks is on -- no need for caps links cleanup.", true );
}
- $this->user = User::newSystemUser( 'Conversion script',
array( 'steal' => true )
);
+ $this->user = User::newSystemUser( 'Conversion script',
[ 'steal' => true ]
);
$this->namespace = intval( $this->getOption( 'namespace', 0 ) );
$this->dryrun = $this->hasOption( 'dry-run' );
$this->namespace = intval( $this->getOption( 'namespace', 0 ) );
$this->dryrun = $this->hasOption( 'dry-run' );
- $this->runTable(
array(
+ $this->runTable(
[
'table' => 'page',
'table' => 'page',
- 'conds' =>
array( 'page_namespace' => $this->namespace )
,
+ 'conds' =>
[ 'page_namespace' => $this->namespace ]
,
'index' => 'page_id',
'index' => 'page_id',
- 'callback' => 'processRow'
)
);
+ 'callback' => 'processRow'
]
);
}
protected function processRow( $row ) {
}
protected function processRow( $row ) {