diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /includes/api/ApiQueryProtectedTitles.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'includes/api/ApiQueryProtectedTitles.php')
-rw-r--r-- | includes/api/ApiQueryProtectedTitles.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 14aed28d..4aa00007 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$'; - } } |