Merge "EditPage: Remove separator between cancel and help"
[lhc/web/wiklou.git] / includes / api / ApiEditPage.php
index 4360b4d..26d4fd1 100644 (file)
@@ -266,6 +266,7 @@ class ApiEditPage extends ApiBase {
                        'wpIgnoreBlankArticle' => true,
                        'wpIgnoreSelfRedirect' => true,
                        'bot' => $params['bot'],
+                       'wpUnicodeCheck' => EditPage::UNICODE_CHECK,
                ];
 
                if ( !is_null( $params['summary'] ) ) {
@@ -333,7 +334,7 @@ class ApiEditPage extends ApiBase {
                }
 
                // Apply change tags
-               if ( count( $params['tags'] ) ) {
+               if ( $params['tags'] ) {
                        $tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
                        if ( $tagStatus->isOK() ) {
                                $requestArray['wpChangeTags'] = implode( ',', $params['tags'] );