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 "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiProtect.php
diff --git
a/includes/api/ApiProtect.php
b/includes/api/ApiProtect.php
index
746dc9a
..
c74f890
100644
(file)
--- a/
includes/api/ApiProtect.php
+++ b/
includes/api/ApiProtect.php
@@
-29,8
+29,6
@@
*/
class ApiProtect extends ApiBase {
public function execute() {
*/
class ApiProtect extends ApiBase {
public function execute() {
- global $wgContLang;
-
$params = $this->extractRequestParams();
$pageObj = $this->getTitleOrPageId( $params, 'fromdbmaster' );
$params = $this->extractRequestParams();
$pageObj = $this->getTitleOrPageId( $params, 'fromdbmaster' );
@@
-101,7
+99,7
@@
class ApiProtect extends ApiBase {
}
$resultProtections[] = [
$p[0] => $protections[$p[0]],
}
$resultProtections[] = [
$p[0] => $protections[$p[0]],
- 'expiry' =>
$wgContLang->formatExpiry( $expiryarray[$p[0]], TS_ISO_8601
, 'infinite' ),
+ 'expiry' =>
ApiResult::formatExpiry( $expiryarray[$p[0]]
, 'infinite' ),
];
}
];
}