X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiEditPage.php;h=94d6e97b248d9fb7666f9b14f244db41467141a5;hp=2245195cb0815029fae2a3dc598019dde7a0215f;hb=19b739bd19c437c5a637d85f431f139da7521508;hpb=2c12b1fd2afc14a03c16f05c844320985d911ca0 diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 2245195cb0..94d6e97b24 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -62,7 +62,7 @@ class ApiEditPage extends ApiBase { $redirValues = []; - /** @var $newTitle Title */ + /** @var Title $newTitle */ foreach ( $titles as $id => $newTitle ) { if ( !isset( $titles[$id - 1] ) ) { $titles[$id - 1] = $oldTitle; @@ -266,6 +266,7 @@ class ApiEditPage extends ApiBase { 'wpIgnoreBlankArticle' => true, 'wpIgnoreSelfRedirect' => true, 'bot' => $params['bot'], + 'wpUnicodeCheck' => EditPage::UNICODE_CHECK, ]; if ( !is_null( $params['summary'] ) ) { @@ -359,7 +360,7 @@ class ApiEditPage extends ApiBase { $articleContext->setWikiPage( $pageObj ); $articleContext->setUser( $this->getUser() ); - /** @var $articleObject Article */ + /** @var Article $articleObject */ $articleObject = Article::newFromWikiPage( $pageObj, $articleContext ); $ep = new EditPage( $articleObject );