diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /maintenance/orphans.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'maintenance/orphans.php')
-rw-r--r-- | maintenance/orphans.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/orphans.php b/maintenance/orphans.php index 78f98f5a..3b1a9b0e 100644 --- a/maintenance/orphans.php +++ b/maintenance/orphans.php @@ -87,7 +87,7 @@ class Orphans extends Maintenance { FROM $revision LEFT OUTER JOIN $page ON rev_page=page_id WHERE page_id IS NULL " ); - $orphans = $dbw->numRows( $result ); + $orphans = $result->numRows(); if ( $orphans > 0 ) { global $wgContLang; $this->output( "$orphans orphan revisions...\n" ); @@ -139,7 +139,7 @@ class Orphans extends Maintenance { FROM $page LEFT OUTER JOIN $revision ON page_latest=rev_id WHERE rev_id IS NULL " ); - $widows = $dbw->numRows( $result ); + $widows = $result->numRows(); if ( $widows > 0 ) { $this->output( "$widows childless pages...\n" ); $this->output( sprintf( "%10s %11s %2s %s\n", 'page_id', 'page_latest', 'ns', 'page_title' ) ); |