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 "Add GENDER support to $3 in logentry-rights-rights"
[lhc/web/wiklou.git]
/
maintenance
/
dumpLinks.php
diff --git
a/maintenance/dumpLinks.php
b/maintenance/dumpLinks.php
index
74b500a
..
1faeb8a
100644
(file)
--- a/
maintenance/dumpLinks.php
+++ b/
maintenance/dumpLinks.php
@@
-40,21
+40,21
@@
require_once __DIR__ . '/Maintenance.php';
class DumpLinks extends Maintenance {
public function __construct() {
parent::__construct();
class DumpLinks extends Maintenance {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Quick demo hack to generate a plaintext link dump"
;
+ $this->
addDescription( 'Quick demo hack to generate a plaintext link dump' )
;
}
public function execute() {
$dbr = $this->getDB( DB_SLAVE );
}
public function execute() {
$dbr = $this->getDB( DB_SLAVE );
- $result = $dbr->select(
array( 'pagelinks', 'page' )
,
- array(
+ $result = $dbr->select(
[ 'pagelinks', 'page' ]
,
+ [
'page_id',
'page_namespace',
'page_title',
'pl_namespace',
'page_id',
'page_namespace',
'page_title',
'pl_namespace',
- 'pl_title'
)
,
-
array( 'page_id=pl_from' )
,
+ 'pl_title'
]
,
+
[ 'page_id=pl_from' ]
,
__METHOD__,
__METHOD__,
-
array( 'ORDER BY' => 'page_id' )
);
+
[ 'ORDER BY' => 'page_id' ]
);
$lastPage = null;
foreach ( $result as $row ) {
$lastPage = null;
foreach ( $result as $row ) {