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 "Move category refreshes to a deferred update"
[lhc/web/wiklou.git]
/
maintenance
/
dumpLinks.php
diff --git
a/maintenance/dumpLinks.php
b/maintenance/dumpLinks.php
index
dfd1959
..
74b500a
100644
(file)
--- a/
maintenance/dumpLinks.php
+++ b/
maintenance/dumpLinks.php
@@
-44,7
+44,7
@@
class DumpLinks extends Maintenance {
}
public function execute() {
}
public function execute() {
- $dbr =
wfG
etDB( DB_SLAVE );
+ $dbr =
$this->g
etDB( DB_SLAVE );
$result = $dbr->select( array( 'pagelinks', 'page' ),
array(
'page_id',
$result = $dbr->select( array( 'pagelinks', 'page' ),
array(
'page_id',
@@
-59,7
+59,7
@@
class DumpLinks extends Maintenance {
$lastPage = null;
foreach ( $result as $row ) {
if ( $lastPage != $row->page_id ) {
$lastPage = null;
foreach ( $result as $row ) {
if ( $lastPage != $row->page_id ) {
- if (
isset( $lastPage )
) {
+ if (
$lastPage !== null
) {
$this->output( "\n" );
}
$page = Title::makeTitle( $row->page_namespace, $row->page_title );
$this->output( "\n" );
}
$page = Title::makeTitle( $row->page_namespace, $row->page_title );
@@
-69,7
+69,7
@@
class DumpLinks extends Maintenance {
$link = Title::makeTitle( $row->pl_namespace, $row->pl_title );
$this->output( " " . $link->getPrefixedURL() );
}
$link = Title::makeTitle( $row->pl_namespace, $row->pl_title );
$this->output( " " . $link->getPrefixedURL() );
}
- if (
isset( $lastPage )
) {
+ if (
$lastPage !== null
) {
$this->output( "\n" );
}
}
$this->output( "\n" );
}
}