dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6d8c7
)
(Bug 25138) ApiUndelete begins a transaction, but does not commit.
author
Platonides
<platonides@users.mediawiki.org>
Fri, 10 Sep 2010 20:31:44 +0000
(20:31 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Fri, 10 Sep 2010 20:31:44 +0000
(20:31 +0000)
The UI doesn't use a transaction either, although it seems appropiate.
The begin() should be moved into PageArchive::undelete()
includes/api/ApiUndelete.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiUndelete.php
b/includes/api/ApiUndelete.php
index
d081d0d
..
83c3fbe
100644
(file)
--- a/
includes/api/ApiUndelete.php
+++ b/
includes/api/ApiUndelete.php
@@
-69,8
+69,6
@@
class ApiUndelete extends ApiBase {
}
$pa = new PageArchive( $titleObj );
- $dbw = wfGetDB( DB_MASTER );
- $dbw->begin();
$retval = $pa->undelete( ( isset( $params['timestamps'] ) ? $params['timestamps'] : array() ), $params['reason'] );
if ( !is_array( $retval ) ) {
$this->dieUsageMsg( array( 'cannotundelete' ) );