X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiRollback.php;h=7c313d5cb76dbe28ae1e655c7d56f002b1c9d024;hb=efe7286cac744ccc7bce5417d20601a387f6d1ad;hp=18aa6daa6638235e01517cf7481248ea710537d6;hpb=8c18b95cbe8149544dbf284733ebd6edb4f2f031;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 18aa6daa66..7c313d5cb7 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -85,13 +85,13 @@ class ApiRollback extends ApiBase { $info = [ 'title' => $titleObj->getPrefixedText(), - 'pageid' => intval( $details['current']->getPage() ), + 'pageid' => (int)$details['current']->getPage(), 'summary' => $details['summary'], - 'revid' => intval( $details['newid'] ), + 'revid' => (int)$details['newid'], // The revision being reverted (previously the current revision of the page) - 'old_revid' => intval( $details['current']->getID() ), + 'old_revid' => (int)$details['current']->getID(), // The revision being restored (the last revision before revision(s) by the reverted user) - 'last_revid' => intval( $details['target']->getID() ) + 'last_revid' => (int)$details['target']->getID() ]; $this->getResult()->addValue( null, $this->getModuleName(), $info );