Index: trunk/extensions/CodeReview/api/ApiRevisionUpdate.php |
— | — | @@ -51,8 +51,8 @@ |
52 | 52 | $params['removetags'], |
53 | 53 | $params['addflags'], |
54 | 54 | $params['removeflags'], |
55 | | - null, // TODO: implement reference add/remove |
56 | | - array(), |
| 55 | + $params['addreferences'], |
| 56 | + $params['removereferences'], |
57 | 57 | $params['comment'] |
58 | 58 | ); |
59 | 59 | |
— | — | @@ -106,7 +106,15 @@ |
107 | 107 | ApiBase::PARAM_TYPE => 'string', |
108 | 108 | ApiBase::PARAM_ISMULTI => true, |
109 | 109 | ApiBase::PARAM_TYPE => $flags |
110 | | - ) |
| 110 | + ), |
| 111 | + 'addreferences' => array( |
| 112 | + ApiBase::PARAM_TYPE => 'integer', |
| 113 | + ApiBase::PARAM_ISMULTI => true, |
| 114 | + ), |
| 115 | + 'removereferences' => array( |
| 116 | + ApiBase::PARAM_TYPE => 'integer', |
| 117 | + ApiBase::PARAM_ISMULTI => true, |
| 118 | + ), |
111 | 119 | ); |
112 | 120 | } |
113 | 121 | |