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 "api: remove duplicate __contruct calls"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiUndelete.php
diff --git
a/includes/api/ApiUndelete.php
b/includes/api/ApiUndelete.php
index
c996251
..
f53f065
100644
(file)
--- a/
includes/api/ApiUndelete.php
+++ b/
includes/api/ApiUndelete.php
@@
-29,10
+29,6
@@
*/
class ApiUndelete extends ApiBase {
*/
class ApiUndelete extends ApiBase {
- public function __construct( $main, $action ) {
- parent::__construct( $main, $action );
- }
-
public function execute() {
$params = $this->extractRequestParams();
public function execute() {
$params = $this->extractRequestParams();
@@
-61,7
+57,13
@@
class ApiUndelete extends ApiBase {
}
$pa = new PageArchive( $titleObj );
}
$pa = new PageArchive( $titleObj );
- $retval = $pa->undelete( ( isset( $params['timestamps'] ) ? $params['timestamps'] : array() ), $params['reason'] );
+ $retval = $pa->undelete(
+ ( isset( $params['timestamps'] ) ? $params['timestamps'] : array() ),
+ $params['reason'],
+ array(),
+ false,
+ $this->getUser()
+ );
if ( !is_array( $retval ) ) {
$this->dieUsageMsg( 'cannotundelete' );
}
if ( !is_array( $retval ) ) {
$this->dieUsageMsg( 'cannotundelete' );
}
@@
-170,8
+172,4
@@
class ApiUndelete extends ApiBase {
public function getHelpUrls() {
return 'https://www.mediawiki.org/wiki/API:Undelete';
}
public function getHelpUrls() {
return 'https://www.mediawiki.org/wiki/API:Undelete';
}
-
- public function getVersion() {
- return __CLASS__ . ': $Id$';
- }
}
}