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 "Addition of SearchAfterNoDirectMatch hook"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiFileRevert.php
diff --git
a/includes/api/ApiFileRevert.php
b/includes/api/ApiFileRevert.php
index
83d078d
..
092b003
100644
(file)
--- a/
includes/api/ApiFileRevert.php
+++ b/
includes/api/ApiFileRevert.php
@@
-50,7
+50,7
@@
class ApiFileRevert extends ApiBase {
$this->checkPermissions( $this->getUser() );
$sourceUrl = $this->file->getArchiveVirtualUrl( $this->archiveName );
$this->checkPermissions( $this->getUser() );
$sourceUrl = $this->file->getArchiveVirtualUrl( $this->archiveName );
- $status = $this->file->upload( $sourceUrl, $this->params['comment'], $this->params['comment'] );
+ $status = $this->file->upload( $sourceUrl, $this->params['comment'], $this->params['comment']
, 0, false, false, $this->getUser()
);
if ( $status->isGood() ) {
$result = array( 'result' => 'Success' );
if ( $status->isGood() ) {
$result = array( 'result' => 'Success' );