Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -248,7 +248,6 @@ |
249 | 249 | break; |
250 | 250 | } |
251 | 251 | } |
252 | | - $db->freeResult( $res ); |
253 | 252 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'page' ); |
254 | 253 | } |
255 | 254 | |
Index: trunk/phase3/includes/api/ApiQueryAllLinks.php |
— | — | @@ -145,7 +145,6 @@ |
146 | 146 | $pageids[] = $row->pl_from; |
147 | 147 | } |
148 | 148 | } |
149 | | - $db->freeResult( $res ); |
150 | 149 | |
151 | 150 | if ( is_null( $resultPageSet ) ) { |
152 | 151 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'l' ); |
Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -271,7 +271,6 @@ |
272 | 272 | |
273 | 273 | $data[] = $val; |
274 | 274 | } |
275 | | - $db->freeResult( $res ); |
276 | 275 | |
277 | 276 | $this->getResult()->setIndexedTagName( $data, 'iw' ); |
278 | 277 | return $this->getResult()->addValue( 'query', $property, $data ); |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -345,7 +345,6 @@ |
346 | 346 | break; |
347 | 347 | } |
348 | 348 | } |
349 | | - $db->freeResult( $res ); |
350 | 349 | } |
351 | 350 | |
352 | 351 | private function extractRowInfo( $row ) { |
Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -166,7 +166,6 @@ |
167 | 167 | break; |
168 | 168 | } |
169 | 169 | } |
170 | | - $db->freeResult( $res ); |
171 | 170 | |
172 | 171 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'fa' ); |
173 | 172 | } |
Index: trunk/phase3/includes/api/ApiQueryExternalLinks.php |
— | — | @@ -82,7 +82,6 @@ |
83 | 83 | break; |
84 | 84 | } |
85 | 85 | } |
86 | | - $db->freeResult( $res ); |
87 | 86 | } |
88 | 87 | |
89 | 88 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -160,7 +160,6 @@ |
161 | 161 | } |
162 | 162 | $lastSortKey = $row->cl_sortkey; // detect duplicate sortkeys |
163 | 163 | } |
164 | | - $db->freeResult( $res ); |
165 | 164 | |
166 | 165 | if ( is_null( $resultPageSet ) ) { |
167 | 166 | $this->getResult()->setIndexedTagName_internal( |
Index: trunk/phase3/includes/api/ApiQueryAllpages.php |
— | — | @@ -174,7 +174,6 @@ |
175 | 175 | $resultPageSet->processDbRow( $row ); |
176 | 176 | } |
177 | 177 | } |
178 | | - $db->freeResult( $res ); |
179 | 178 | |
180 | 179 | if ( is_null( $resultPageSet ) ) { |
181 | 180 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'p' ); |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -114,9 +114,6 @@ |
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
118 | | - // Free the database record so the connection can get on with other stuff |
119 | | - $db->freeResult( $res ); |
120 | | - |
121 | 118 | $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'item' ); |
122 | 119 | } |
123 | 120 | |
Index: trunk/phase3/includes/api/ApiPageSet.php |
— | — | @@ -472,7 +472,6 @@ |
473 | 473 | // Store any extra fields requested by modules |
474 | 474 | $this->processDbRow( $row ); |
475 | 475 | } |
476 | | - $db->freeResult( $res ); |
477 | 476 | |
478 | 477 | if ( isset( $remaining ) ) { |
479 | 478 | // Any items left in the $remaining list are added as missing |
— | — | @@ -527,7 +526,6 @@ |
528 | 527 | $pageids[$pageid] = ''; |
529 | 528 | unset( $remaining[$revid] ); |
530 | 529 | } |
531 | | - $db->freeResult( $res ); |
532 | 530 | $this->profileDBOut(); |
533 | 531 | |
534 | 532 | $this->mMissingRevIDs = array_keys( $remaining ); |
— | — | @@ -606,7 +604,7 @@ |
607 | 605 | } |
608 | 606 | $this->mRedirectTitles[$from] = $to; |
609 | 607 | } |
610 | | - $db->freeResult( $res ); |
| 608 | + |
611 | 609 | if ( $this->mPendingRedirectIDs ) { |
612 | 610 | // We found pages that aren't in the redirect table |
613 | 611 | // Add them |
Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -273,8 +273,6 @@ |
274 | 274 | } |
275 | 275 | } |
276 | 276 | |
277 | | - $db->freeResult( $res ); |
278 | | - |
279 | 277 | /* Format the result */ |
280 | 278 | $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'rc' ); |
281 | 279 | } |
Index: trunk/phase3/includes/api/ApiQueryAllCategories.php |
— | — | @@ -117,7 +117,6 @@ |
118 | 118 | } |
119 | 119 | } |
120 | 120 | } |
121 | | - $db->freeResult( $res ); |
122 | 121 | |
123 | 122 | if ( is_null( $resultPageSet ) ) { |
124 | 123 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'c' ); |
Index: trunk/phase3/includes/api/ApiQueryProtectedTitles.php |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | $titles[] = $title; |
125 | 125 | } |
126 | 126 | } |
127 | | - $db->freeResult( $res ); |
| 127 | + |
128 | 128 | if ( is_null( $resultPageSet ) ) { |
129 | 129 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), $this->getModulePrefix() ); |
130 | 130 | } else { |
Index: trunk/phase3/includes/api/ApiQueryIWLinks.php |
— | — | @@ -107,7 +107,6 @@ |
108 | 108 | break; |
109 | 109 | } |
110 | 110 | } |
111 | | - $db->freeResult( $res ); |
112 | 111 | } |
113 | 112 | |
114 | 113 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryLinks.php |
— | — | @@ -178,8 +178,6 @@ |
179 | 179 | } |
180 | 180 | $resultPageSet->populateFromTitles( $titles ); |
181 | 181 | } |
182 | | - |
183 | | - $db->freeResult( $res ); |
184 | 182 | } |
185 | 183 | |
186 | 184 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -174,8 +174,6 @@ |
175 | 175 | } |
176 | 176 | $resultPageSet->populateFromTitles( $titles ); |
177 | 177 | } |
178 | | - |
179 | | - $db->freeResult( $res ); |
180 | 178 | } |
181 | 179 | |
182 | 180 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryExtLinksUsage.php |
— | — | @@ -141,7 +141,6 @@ |
142 | 142 | $resultPageSet->processDbRow( $row ); |
143 | 143 | } |
144 | 144 | } |
145 | | - $db->freeResult( $res ); |
146 | 145 | |
147 | 146 | if ( is_null( $resultPageSet ) ) { |
148 | 147 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), |
Index: trunk/phase3/includes/api/ApiQueryCategoryInfo.php |
— | — | @@ -93,7 +93,6 @@ |
94 | 94 | break; |
95 | 95 | } |
96 | 96 | } |
97 | | - $db->freeResult( $res ); |
98 | 97 | } |
99 | 98 | |
100 | 99 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryDuplicateFiles.php |
— | — | @@ -121,7 +121,6 @@ |
122 | 122 | if ( !is_null( $resultPageSet ) ) { |
123 | 123 | $resultPageSet->populateFromTitles( $titles ); |
124 | 124 | } |
125 | | - $db->freeResult( $res ); |
126 | 125 | } |
127 | 126 | |
128 | 127 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -232,7 +232,6 @@ |
233 | 233 | $resultPageSet->processDbRow( $row ); |
234 | 234 | } |
235 | 235 | } |
236 | | - $db->freeResult( $res ); |
237 | 236 | |
238 | 237 | if ( $this->redirect && count( $this->redirTitles ) ) { |
239 | 238 | $this->resetQueryParams(); |
— | — | @@ -258,7 +257,6 @@ |
259 | 258 | $resultPageSet->processDbRow( $row ); |
260 | 259 | } |
261 | 260 | } |
262 | | - $db->freeResult( $res ); |
263 | 261 | } |
264 | 262 | if ( is_null( $resultPageSet ) ) { |
265 | 263 | // Try to add the result data in one go and pray that it fits |
Index: trunk/phase3/includes/api/ApiQueryIWBacklinks.php |
— | — | @@ -111,7 +111,6 @@ |
112 | 112 | break; |
113 | 113 | } |
114 | 114 | } |
115 | | - $db->freeResult( $res ); |
116 | 115 | |
117 | 116 | $this->getResult()->setIndexedTagName_internal( |
118 | 117 | array( 'query', $this->getModuleName() ), |
Index: trunk/phase3/includes/api/ApiQueryImages.php |
— | — | @@ -120,8 +120,6 @@ |
121 | 121 | } |
122 | 122 | $resultPageSet->populateFromTitles( $titles ); |
123 | 123 | } |
124 | | - |
125 | | - $db->freeResult( $res ); |
126 | 124 | } |
127 | 125 | |
128 | 126 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryRandom.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | $resultPageSet->processDbRow( $row ); |
89 | 89 | } |
90 | 90 | } |
91 | | - $db->freeResult( $res ); |
| 91 | + |
92 | 92 | return $count; |
93 | 93 | } |
94 | 94 | |
Index: trunk/phase3/includes/api/ApiQueryAllimages.php |
— | — | @@ -134,7 +134,6 @@ |
135 | 135 | $titles[] = Title::makeTitle( NS_IMAGE, $row->img_name ); |
136 | 136 | } |
137 | 137 | } |
138 | | - $db->freeResult( $res ); |
139 | 138 | |
140 | 139 | if ( is_null( $resultPageSet ) ) { |
141 | 140 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'img' ); |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -171,8 +171,6 @@ |
172 | 172 | break; |
173 | 173 | } |
174 | 174 | } |
175 | | - $db->freeResult( $res ); |
176 | | - |
177 | 175 | $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'item' ); |
178 | 176 | } |
179 | 177 | |
Index: trunk/phase3/includes/api/ApiQueryLangLinks.php |
— | — | @@ -94,7 +94,6 @@ |
95 | 95 | break; |
96 | 96 | } |
97 | 97 | } |
98 | | - $db->freeResult( $res ); |
99 | 98 | } |
100 | 99 | |
101 | 100 | public function getAllowedParams() { |
Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -187,8 +187,6 @@ |
188 | 188 | } |
189 | 189 | } |
190 | 190 | |
191 | | - $db->freeResult( $res ); |
192 | | - |
193 | 191 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'u' ); |
194 | 192 | } |
195 | 193 | |
Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -416,7 +416,6 @@ |
417 | 417 | } |
418 | 418 | } |
419 | 419 | } |
420 | | - $db->freeResult( $res ); |
421 | 420 | } |
422 | 421 | |
423 | 422 | // Get protections for missing titles |
— | — | @@ -434,7 +433,6 @@ |
435 | 434 | 'expiry' => Block::decodeExpiry( $row->pt_expiry, TS_ISO_8601 ) |
436 | 435 | ); |
437 | 436 | } |
438 | | - $db->freeResult( $res ); |
439 | 437 | } |
440 | 438 | |
441 | 439 | // Cascading protections |
— | — | @@ -470,7 +468,6 @@ |
471 | 469 | 'source' => $source->getPrefixedText() |
472 | 470 | ); |
473 | 471 | } |
474 | | - $db->freeResult( $res ); |
475 | 472 | } |
476 | 473 | |
477 | 474 | if ( count( $images ) ) { |
— | — | @@ -494,7 +491,6 @@ |
495 | 492 | 'source' => $source->getPrefixedText() |
496 | 493 | ); |
497 | 494 | } |
498 | | - $db->freeResult( $res ); |
499 | 495 | } |
500 | 496 | } |
501 | 497 | |
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -202,8 +202,6 @@ |
203 | 203 | } |
204 | 204 | } |
205 | 205 | |
206 | | - $db->freeResult( $res ); |
207 | | - |
208 | 206 | if ( is_null( $resultPageSet ) ) { |
209 | 207 | $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'item' ); |
210 | 208 | } elseif ( $params['allrev'] ) { |