jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/326167 )
Change subject: Replaced "Article::fetchContent()" deprecated in MediaWiki 1.21 ...................................................................... Replaced "Article::fetchContent()" deprecated in MediaWiki 1.21 Replaced "Article" class with "WikiPage" Bug: T151973 Change-Id: Ic27d8ebc8d04d100a5c6c3f4bd47466ea5c3162f --- M SearchOracleText.php 1 file changed, 3 insertions(+), 4 deletions(-) Approvals: Reedy: Looks good to me, approved jenkins-bot: Verified diff --git a/SearchOracleText.php b/SearchOracleText.php index c526da0..eb1432c 100644 --- a/SearchOracleText.php +++ b/SearchOracleText.php @@ -16,7 +16,7 @@ $url = $wgExIndexOnHTTP ? preg_replace( '/^https:/i', 'http:', $file->getFullUrl() ) : $file->getFullUrl(); $dbw->update('searchindex', - array( 'si_url' => $url ), + array( 'si_url' => $url ), array( 'si_page' => $id ), 'SearchIndexUpdate:update' ); wfDebugLog( 'OracleTextSearch', 'Updated si_url for page ' . $id ); @@ -46,9 +46,8 @@ $localFile = $file->getLocalFile(); if ( $localFile != null && in_array( $localFile->getMimeType(), $wgExIndexMIMETypes ) ) { wfDebugLog( 'OracleTextSearch', 'Touching file page to force indexing'); - $article = new Article( $localFile->getTitle() ); - $article->fetchContent(); - $article->doEdit( $article->mContent, $article->mComment ); + $page = WikiPage::factory( $localFile->getTitle() ); + $page->doEditContent( $page->getContent(), $page->getComment() ); } return true; } -- To view, visit https://gerrit.wikimedia.org/r/326167 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic27d8ebc8d04d100a5c6c3f4bd47466ea5c3162f Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/OracleTextSearch Gerrit-Branch: master Gerrit-Owner: Filip <r...@protonmail.com> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits