| @@ 353-361 (lines=9) @@ | ||
| 350 | * @param int $id |
|
| 351 | * @param string $title |
|
| 352 | */ |
|
| 353 | function updateTitle( $id, $title ) { |
|
| 354 | $dbw = wfGetDB( DB_MASTER ); |
|
| 355 | ||
| 356 | $dbw->update( 'searchindex', |
|
| 357 | [ 'si_title' => $this->normalizeText( $title ) ], |
|
| 358 | [ 'si_page' => $id ], |
|
| 359 | __METHOD__, |
|
| 360 | [ $dbw->lowPriorityOption() ] ); |
|
| 361 | } |
|
| 362 | ||
| 363 | /** |
|
| 364 | * Delete an indexed page |
|
| @@ 296-306 (lines=11) @@ | ||
| 293 | * @param int $id |
|
| 294 | * @param string $title |
|
| 295 | */ |
|
| 296 | function updateTitle( $id, $title ) { |
|
| 297 | if ( !$this->fulltextSearchSupported() ) { |
|
| 298 | return; |
|
| 299 | } |
|
| 300 | $dbw = wfGetDB( DB_MASTER ); |
|
| 301 | ||
| 302 | $dbw->update( 'searchindex', |
|
| 303 | [ 'si_title' => $title ], |
|
| 304 | [ 'rowid' => $id ], |
|
| 305 | __METHOD__ ); |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||