From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- maintenance/orphans.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maintenance/orphans.php') 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' ) ); -- cgit v1.2.2 From 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 8 Dec 2013 09:55:49 +0100 Subject: Update to MediaWiki 1.22.0 --- maintenance/orphans.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'maintenance/orphans.php') diff --git a/maintenance/orphans.php b/maintenance/orphans.php index 3b1a9b0e..b4d255ab 100644 --- a/maintenance/orphans.php +++ b/maintenance/orphans.php @@ -28,7 +28,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that looks for 'orphan' revisions hooked to pages which @@ -171,7 +171,7 @@ class Orphans extends Maintenance { */ private function checkSeparation( $fix ) { $dbw = wfGetDB( DB_MASTER ); - $page = $dbw->tableName( 'page' ); + $page = $dbw->tableName( 'page' ); $revision = $dbw->tableName( 'revision' ); if ( $fix ) { @@ -209,7 +209,7 @@ class Orphans extends Maintenance { 'revision', 'rev_id', array( - 'rev_page' => $row->page_id, + 'rev_page' => $row->page_id, 'rev_timestamp' => $row2->max_timestamp ) ); $this->output( "... updating to revision $maxId\n" ); $maxRev = Revision::newFromId( $maxId ); @@ -239,4 +239,4 @@ class Orphans extends Maintenance { } $maintClass = "Orphans"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN; -- cgit v1.2.2