Index: trunk/phase3/includes/Article.php |
— | — | @@ -1570,6 +1570,7 @@ |
1571 | 1571 | $this->mGoodAdjustment = (int)$this->isCountable( $text ); |
1572 | 1572 | $this->mTotalAdjustment = 1; |
1573 | 1573 | |
| 1574 | + $dbw->begin(); |
1574 | 1575 | # Add the page record; stake our claim on this title! |
1575 | 1576 | # This will fail with a database query exception if the article already exists |
1576 | 1577 | $newid = $this->insertOn( $dbw ); |
— | — | @@ -1601,6 +1602,7 @@ |
1602 | 1603 | } |
1603 | 1604 | } |
1604 | 1605 | $user->incEditCount(); |
| 1606 | + $dbw->commit(); |
1605 | 1607 | |
1606 | 1608 | # Update links, etc. |
1607 | 1609 | $this->editUpdates( $text, $summary, $isminor, $now, $revisionId, true ); |