r72747 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72746‎ | r72747 | r72748 >
Date:20:31, 10 September 2010
Author:platonides
Status:ok
Tags:
Comment:
(Bug 25138) ApiUndelete begins a transaction, but does not commit.
The UI doesn't use a transaction either, although it seems appropiate.
The begin() should be moved into PageArchive::undelete()
Modified paths:
  • /trunk/phase3/includes/api/ApiUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiUndelete.php
@@ -69,8 +69,6 @@
7070 }
7171
7272 $pa = new PageArchive( $titleObj );
73 - $dbw = wfGetDB( DB_MASTER );
74 - $dbw->begin();
7573 $retval = $pa->undelete( ( isset( $params['timestamps'] ) ? $params['timestamps'] : array() ), $params['reason'] );
7674 if ( !is_array( $retval ) ) {
7775 $this->dieUsageMsg( array( 'cannotundelete' ) );

Status & tagging log