X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiProtect.php;h=27f0f1eecc082ef14cf8a1e8570b05f5cba5576f;hb=0acddf0b416da9fb0ed5b11da743789dfa3e5526;hp=80c76b30a71d0366523cd9d21ad6a8474e8b5be6;hpb=db765aa9af764072db070659b612e23aad1e5d81;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 80c76b30a7..27f0f1eecc 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -92,10 +92,13 @@ class ApiProtect extends ApiBase { } $expiryarray[$p[0]] = $exp; } - $resultProtections[] = array( $p[0] => $protections[$p[0]], - 'expiry' => ( $expiryarray[$p[0]] == $db->getInfinity() ? - 'infinite' : - wfTimestamp( TS_ISO_8601, $expiryarray[$p[0]] ) ) ); + $resultProtections[] = array( + $p[0] => $protections[$p[0]], + 'expiry' => ( $expiryarray[$p[0]] == $db->getInfinity() + ? 'infinite' + : wfTimestamp( TS_ISO_8601, $expiryarray[$p[0]] ) + ) + ); } $cascade = $params['cascade']; @@ -209,7 +212,7 @@ class ApiProtect extends ApiBase { } public function getDescription() { - return 'Change the protection level of a page'; + return 'Change the protection level of a page.'; } public function getPossibleErrors() {