Drop parenthesis from no/nb/nn to match CLDR
[lhc/web/wiklou.git] / maintenance / deleteArchivedRevisions.inc
index 10bd4cf..414d41a 100644 (file)
@@ -1,7 +1,6 @@
 <?php
-
 /**
- * Delete archived (deleted from public) revisions from the database
+ * Helper methods for the deleteArchivedRevisions.php maintenance script.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  *
+ * @file
  * @ingroup Maintenance
  */
 
+/**
+ * Helper methods for the deleteArchivedRevisions.php maintenance script.
+ *
+ * @ingroup Maintenance
+ */
 class DeleteArchivedRevisionsImplementation {
 
        /**
@@ -34,7 +39,7 @@ class DeleteArchivedRevisionsImplementation {
        static public function doDelete( $maint ) {
                $dbw = wfGetDB( DB_MASTER );
 
-               $dbw->begin();
+               $dbw->begin( __METHOD__ );
 
                $tbl_arch = $dbw->tableName( 'archive' );
 
@@ -49,9 +54,9 @@ class DeleteArchivedRevisionsImplementation {
 
                # This bit's done
                # Purge redundant text records
-               $dbw->commit();
+               $dbw->commit( __METHOD__ );
                if ( $deletedRows ) {
                        $maint->purgeRedundantText( true );
                }
        }
-}
\ No newline at end of file
+}