35 return trim( $this->su->updateText( $text ) );
45 'HTML stripped, text lowercased'
52 <tr
class=
"scary"><td><div>foo</div></td><tr>bar</td></tr>
53 <tr><td>boz</td><tr>quux</td></tr>
56 ),
'Stripping HTML tables' );
61 'Handle unclosed tags'
64 $text = str_pad(
"foo <barbarbar \n", 10000,
'x' );
66 $this->assertNotEquals(
79 $text =
"text „http://example.com“ text";
81 $processed = preg_replace(
'/Q/u',
'Q', $result );
84 'Link surrounded by unicode quotes should not fail UTF-8 validation'
update( $id, $title, $text)
Create or update the search index record for the given page.
Contain a class for special pages.
testUnicodeLinkSearchIndexError()
SearchUpdate::updateText Test T34712 Test if unicode quotes in article links make its search index em...
testUpdateText()
SearchUpdate::updateText.
Database independant search index updater.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if so it s not worth the trouble Since there is a job queue in the jobs table