Index: trunk/phase3/includes/SpecialUndelete.php |
— | — | @@ -319,8 +319,6 @@ |
320 | 320 | * @return int number of revisions restored |
321 | 321 | */ |
322 | 322 | private function undeleteRevisions( $timestamps ) { |
323 | | - global $wgDBtype; |
324 | | - |
325 | 323 | $restoreAll = empty( $timestamps ); |
326 | 324 | |
327 | 325 | $dbw = wfGetDB( DB_MASTER ); |
— | — | @@ -328,9 +326,7 @@ |
329 | 327 | |
330 | 328 | # Does this page already exist? We'll have to update it... |
331 | 329 | $article = new Article( $this->title ); |
332 | | - $options = ( $wgDBtype == 'postgres' ) |
333 | | - ? '' // pg doesn't support this? |
334 | | - : 'FOR UPDATE'; |
| 330 | + $options = 'FOR UPDATE'; |
335 | 331 | $page = $dbw->selectRow( 'page', |
336 | 332 | array( 'page_id', 'page_latest' ), |
337 | 333 | array( 'page_namespace' => $this->title->getNamespace(), |