From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- .../revisiondelete/RevisionDeleteAbstracts.php | 38 ++++++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'includes/revisiondelete/RevisionDeleteAbstracts.php') diff --git a/includes/revisiondelete/RevisionDeleteAbstracts.php b/includes/revisiondelete/RevisionDeleteAbstracts.php index dc7af194..4f58099f 100644 --- a/includes/revisiondelete/RevisionDeleteAbstracts.php +++ b/includes/revisiondelete/RevisionDeleteAbstracts.php @@ -1,4 +1,25 @@ res = false; $dbw = wfGetDB( DB_MASTER ); $this->doQuery( $dbw ); - $dbw->begin(); + $dbw->begin( __METHOD__ ); $status = Status::newGood(); $missing = array_flip( $this->ids ); $this->clearFileOps(); @@ -110,7 +132,7 @@ abstract class RevDel_List extends RevisionListBase { if ( $status->successCount == 0 ) { $status->ok = false; - $dbw->rollback(); + $dbw->rollback( __METHOD__ ); return $status; } @@ -121,7 +143,7 @@ abstract class RevDel_List extends RevisionListBase { $status->merge( $this->doPreCommitUpdates() ); if ( !$status->isOK() ) { // Fatal error, such as no configured archive directory - $dbw->rollback(); + $dbw->rollback( __METHOD__ ); return $status; } @@ -136,7 +158,7 @@ abstract class RevDel_List extends RevisionListBase { 'authorIds' => $authorIds, 'authorIPs' => $authorIPs ) ); - $dbw->commit(); + $dbw->commit( __METHOD__ ); // Clear caches $status->merge( $this->doPostCommitUpdates() ); @@ -154,7 +176,7 @@ abstract class RevDel_List extends RevisionListBase { /** * Record a log entry on the action - * @param $params Associative array of parameters: + * @param $params array Associative array of parameters: * newBits: The new value of the *_deleted bitfield * oldBits: The old value of the *_deleted bitfield. * title: The target title @@ -189,6 +211,7 @@ abstract class RevDel_List extends RevisionListBase { /** * Get the log action for this list type + * @return string */ public function getLogAction() { return 'revision'; @@ -196,7 +219,7 @@ abstract class RevDel_List extends RevisionListBase { /** * Get log parameter array. - * @param $params Associative array of log parameters, same as updateLog() + * @param $params array Associative array of log parameters, same as updateLog() * @return array */ public function getLogParams( $params ) { @@ -247,6 +270,7 @@ abstract class RevDel_Item extends RevisionItemBase { * Returns true if the item is "current", and the operation to set the given * bits can't be executed for that reason * STUB + * @return bool */ public function isHideCurrentOp( $newBits ) { return false; -- cgit v1.2.3-54-g00ecf