diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /includes/actions/RevertAction.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'includes/actions/RevertAction.php')
-rw-r--r-- | includes/actions/RevertAction.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/actions/RevertAction.php b/includes/actions/RevertAction.php index 77434384..a5fc4e17 100644 --- a/includes/actions/RevertAction.php +++ b/includes/actions/RevertAction.php @@ -115,7 +115,7 @@ class RevertFileAction extends FormAction { $source = $this->page->getFile()->getArchiveVirtualUrl( $this->getRequest()->getText( 'oldimage' ) ); $comment = $data['comment']; // TODO: Preserve file properties from database instead of reloading from file - return $this->page->getFile()->upload( $source, $comment, $comment ); + return $this->page->getFile()->upload( $source, $comment, $comment, 0, false, false, $this->getUser() ); } public function onSuccess() { @@ -124,7 +124,7 @@ class RevertFileAction extends FormAction { $lang = $this->getLanguage(); $userDate = $lang->userDate( $timestamp, $user ); $userTime = $lang->userTime( $timestamp, $user ); - + $this->getOutput()->addWikiMsg( 'filerevert-success', $this->getTitle()->getText(), $userDate, $userTime, wfExpandUrl( $this->page->getFile()->getArchiveUrl( $this->getRequest()->getText( 'oldimage' ) ), @@ -136,7 +136,7 @@ class RevertFileAction extends FormAction { protected function getPageTitle() { return $this->msg( 'filerevert', $this->getTitle()->getText() ); } - + protected function getDescription() { $this->getOutput()->addBacklinkSubtitle( $this->getTitle() ); return ''; |