From 8c8b692b9738ea0c7c3b7a27cbfcdf277514f480 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 4 Mar 2011 19:13:59 +0000 Subject: [PATCH] W/S cleanup --- includes/Import.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/Import.php b/includes/Import.php index c76a683445..bc75db1306 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -295,7 +295,7 @@ class WikiImporter { return $buffer; } } - + $this->reader->close(); return ''; } @@ -840,15 +840,15 @@ class WikiRevision { function setSize( $size ) { $this->size = intval( $size ); } - + function setType( $type ) { $this->type = $type; } - + function setAction( $action ) { $this->action = $action; } - + function setParams( $params ) { $this->params = $params; } @@ -892,15 +892,15 @@ class WikiRevision { function getSize() { return $this->size; } - + function getType() { return $this->type; } - + function getAction() { return $this->action; } - + function getParams() { return $this->params; } @@ -959,7 +959,7 @@ class WikiRevision { ) ); $revId = $revision->insertOn( $dbw ); $changed = $article->updateIfNewerOn( $dbw, $revision ); - + # To be on the safe side... $tempTitle = $GLOBALS['wgTitle']; $GLOBALS['wgTitle'] = $this->title; @@ -987,12 +987,12 @@ class WikiRevision { return true; } - + function importLogItem() { $dbw = wfGetDB( DB_MASTER ); # FIXME: this will not record autoblocks if( !$this->getTitle() ) { - wfDebug( __METHOD__ . ": skipping invalid {$this->type}/{$this->action} log time, timestamp " . + wfDebug( __METHOD__ . ": skipping invalid {$this->type}/{$this->action} log time, timestamp " . $this->timestamp . "\n" ); return; } @@ -1011,7 +1011,7 @@ class WikiRevision { ); // FIXME: this could fail slightly for multiple matches :P if( $prior ) { - wfDebug( __METHOD__ . ": skipping existing item for Log:{$this->type}/{$this->action}, timestamp " . + wfDebug( __METHOD__ . ": skipping existing item for Log:{$this->type}/{$this->action}, timestamp " . $this->timestamp . "\n" ); return false; } -- 2.20.1