X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FEditPage.php;h=fe0014992034ede7b65a5abf3d63eaa309a02297;hb=abb5cd734581ee57ef75d4c51a35ce3260bc073c;hp=9182300fcf35643a762a98e7cc27fbdd5ed5889e;hpb=77f4ba184762186431748c2cd95ec97d43cd1edc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 9182300fcf..fe00149920 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1683,7 +1683,9 @@ class EditPage { case self::AS_CANNOT_USE_CUSTOM_MODEL: case self::AS_PARSE_ERROR: case self::AS_UNICODE_NOT_SUPPORTED: - $out->wrapWikiTextAsInterface( 'error', $status->getWikiText() ); + $out->wrapWikiTextAsInterface( 'error', + $status->getWikiText( false, false, $this->context->getLanguage() ) + ); return true; case self::AS_SUCCESS_NEW_ARTICLE: @@ -1757,7 +1759,8 @@ class EditPage { // is if an extension hook aborted from inside ArticleSave. // Render the status object into $this->hookError // FIXME this sucks, we should just use the Status object throughout - $this->hookError = '
' . "\n" . $status->getWikiText() . + $this->hookError = '
' . "\n" . + $status->getWikiText( false, false, $this->context->getLanguage() ) . '
'; return true; }