X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryProtectedTitles.php;h=4aa000073bd9c598de518bcc1b79b611f73c84cb;hb=2a6ed8846065696a6cddd9e3a6dd4e1401e750a6;hp=14aed28d7a9a93ad6c6d3aa5c4009ed8ebfd6584;hpb=40edd09eb94a05e768eb4ec3fba482a7ddbe39cc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 14aed28d7a..4aa000073b 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -98,7 +98,7 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { $vals['user'] = $row->user_name; } - if ( isset( $prop['user'] ) ) { + if ( isset( $prop['userid'] ) || /*B/C*/isset( $prop['user'] ) ) { $vals['userid'] = $row->pt_user; } @@ -231,6 +231,9 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { ), 'userid' => 'integer' ), + 'userid' => array( + 'userid' => 'integer' + ), 'comment' => array( 'comment' => 'string' ), @@ -261,8 +264,4 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Protectedtitles'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } }