Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -79,14 +79,7 @@ |
80 | 80 | return false; |
81 | 81 | } |
82 | 82 | |
83 | | - // The patrol token is always the same, let's exploit that |
84 | | - static $cachedPatrolToken = null; |
85 | | - if ( !is_null( $cachedPatrolToken ) ) { |
86 | | - return $cachedPatrolToken; |
87 | | - } |
88 | | - |
89 | | - $cachedPatrolToken = $wgUser->editToken(); |
90 | | - return $cachedPatrolToken; |
| 83 | + return $wgUser->editToken( $rc->getAttribute( 'rc_id' ) ); |
91 | 84 | } |
92 | 85 | |
93 | 86 | /** |
— | — | @@ -192,7 +185,8 @@ |
193 | 186 | 'rc_cur_id', |
194 | 187 | 'rc_type', |
195 | 188 | 'rc_moved_to_ns', |
196 | | - 'rc_moved_to_title' |
| 189 | + 'rc_moved_to_title', |
| 190 | + 'rc_deleted' |
197 | 191 | ) ); |
198 | 192 | |
199 | 193 | /* Determine what properties we need to display. */ |
Index: trunk/phase3/includes/api/ApiPatrol.php |
— | — | @@ -95,7 +95,8 @@ |
96 | 96 | } |
97 | 97 | |
98 | 98 | public function getTokenSalt() { |
99 | | - return ''; |
| 99 | + $params = $this->extractRequestParams(); |
| 100 | + return $params['rcid']; |
100 | 101 | } |
101 | 102 | |
102 | 103 | protected function getExamples() { |