Index: trunk/extensions/CodeReview/api/ApiRevisionUpdate.php |
— | — | @@ -72,6 +72,7 @@ |
73 | 73 | } |
74 | 74 | |
75 | 75 | public function getAllowedParams() { |
| 76 | + $flags = CodeRevision::getPossibleFlags(); |
76 | 77 | return array( |
77 | 78 | 'repo' => array( |
78 | 79 | ApiBase::PARAM_TYPE => 'string', |
— | — | @@ -97,12 +98,12 @@ |
98 | 99 | 'addflags' => array( |
99 | 100 | ApiBase::PARAM_TYPE => 'string', |
100 | 101 | ApiBase::PARAM_ISMULTI => true, |
101 | | - ApiBase::PARAM_TYPE => CodeRevision::getPossibleFlags() |
| 102 | + ApiBase::PARAM_TYPE => $flags |
102 | 103 | ), |
103 | 104 | 'removeflags' => array( |
104 | 105 | ApiBase::PARAM_TYPE => 'string', |
105 | 106 | ApiBase::PARAM_ISMULTI => true, |
106 | | - ApiBase::PARAM_TYPE => CodeRevision::getPossibleFlags() |
| 107 | + ApiBase::PARAM_TYPE => $flags |
107 | 108 | ) |
108 | 109 | ); |
109 | 110 | } |