Index: trunk/extensions/MarkAsHelpful/api/ApiGetMarkAsHelpfulItem.php |
— | — | @@ -28,10 +28,12 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | public function getAllowedParams() { |
| 32 | + global $wgMarkAsHelpfulType; |
| 33 | + |
32 | 34 | return array( |
33 | 35 | 'type' => array( |
34 | 36 | ApiBase::PARAM_REQUIRED => true, |
35 | | - ApiBase::PARAM_TYPE => 'string', |
| 37 | + ApiBase::PARAM_TYPE => $wgMarkAsHelpfulType, |
36 | 38 | ), |
37 | 39 | 'item' => array( |
38 | 40 | ApiBase::PARAM_REQUIRED => true, |
Index: trunk/extensions/MarkAsHelpful/api/ApiMarkAsHelpful.php |
— | — | @@ -72,6 +72,8 @@ |
73 | 73 | } |
74 | 74 | |
75 | 75 | public function getAllowedParams() { |
| 76 | + global $wgMarkAsHelpfulType; |
| 77 | + |
76 | 78 | return array( |
77 | 79 | 'mahaction' => array( |
78 | 80 | ApiBase::PARAM_REQUIRED => true, |
— | — | @@ -82,7 +84,7 @@ |
83 | 85 | ), |
84 | 86 | 'type' => array( |
85 | 87 | ApiBase::PARAM_REQUIRED => true, |
86 | | - ApiBase::PARAM_TYPE => 'string', |
| 88 | + ApiBase::PARAM_TYPE => $wgMarkAsHelpfulType, |
87 | 89 | ), |
88 | 90 | 'item' => array( |
89 | 91 | ApiBase::PARAM_REQUIRED => true, |