Index: trunk/phase3/includes/api/ApiLogin.php |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | return wfMemcKey( 'apilogin', 'badlogin', 'ip', wfGetIP() ); |
225 | 225 | } |
226 | 226 | |
227 | | - //public function mustBePosted() { return true; } |
| 227 | + public function mustBePosted() { return true; } |
228 | 228 | |
229 | 229 | public function getAllowedParams() { |
230 | 230 | return array ( |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -199,10 +199,9 @@ |
200 | 200 | |
201 | 201 | /** |
202 | 202 | * Schedule a database commit |
| 203 | + * @deprecated |
203 | 204 | */ |
204 | | - public function scheduleCommit() { |
205 | | - $this->mCommit = true; |
206 | | - } |
| 205 | + public function scheduleCommit() {} |
207 | 206 | |
208 | 207 | /** |
209 | 208 | * Execute api request. Any errors will be handled if the API was called by the remote client. |
— | — | @@ -213,11 +212,7 @@ |
214 | 213 | $this->executeAction(); |
215 | 214 | else |
216 | 215 | $this->executeActionWithErrorHandling(); |
217 | | - if($this->mCommit) |
218 | | - { |
219 | | - $dbw = wfGetDb(DB_MASTER); |
220 | | - $dbw->immediateCommit(); |
221 | | - } |
| 216 | + |
222 | 217 | $this->profileOut(); |
223 | 218 | } |
224 | 219 | |
Index: trunk/phase3/api.php |
— | — | @@ -83,3 +83,6 @@ |
84 | 84 | wfProfileOut('api.php'); |
85 | 85 | wfLogProfilingData(); |
86 | 86 | |
| 87 | +// Shut down the database |
| 88 | +wfGetLBFactory()->shutdown(); |
| 89 | + |