r71575 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71574‎ | r71575 | r71576 >
Date:17:50, 24 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
removing unneccessary transaction
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
@@ -682,7 +682,6 @@
683683
684684 if ( $dbr->numRows( $res ) == 1 ) {
685685 $dbw = wfGetDB( DB_MASTER );
686 - $dbw->begin();
687686 $res = $dbw->update( 'cn_templates',
688687 array(
689688 'tmp_display_anon' => $displayAnon,
@@ -690,7 +689,6 @@
691690 ),
692691 array( 'tmp_name' => $name )
693692 );
694 - $dbw->commit();
695693
696694 // Perhaps these should move into the db as blob
697695 $article = new Article(

Status & tagging log