dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Let User::idFromName always return int or null"
[lhc/web/wiklou.git]
/
includes
/
Storage
/
PageUpdater.php
diff --git
a/includes/Storage/PageUpdater.php
b/includes/Storage/PageUpdater.php
index
6cbdcc6
..
e25f0f0
100644
(file)
--- a/
includes/Storage/PageUpdater.php
+++ b/
includes/Storage/PageUpdater.php
@@
-1104,10
+1104,10
@@
class PageUpdater {
// TODO: move to storage service
$newid = $wikiPage->insertOn( $dbw );
if ( $newid === false ) {
// TODO: move to storage service
$newid = $wikiPage->insertOn( $dbw );
if ( $newid === false ) {
- $dbw->endAtomic( __METHOD__ );
// nothing inserted
+ $dbw->endAtomic( __METHOD__ );
$status->fatal( 'edit-already-exists' );
$status->fatal( 'edit-already-exists' );
- return $status;
// nothing done
+ return $status;
}
// At this point we are now comitted to returning an OK
}
// At this point we are now comitted to returning an OK