X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FEditPage.php;h=fe0014992034ede7b65a5abf3d63eaa309a02297;hp=9182300fcf35643a762a98e7cc27fbdd5ed5889e;hb=18b3c566fcdf61dad674c0010ce3beb4309d7a04;hpb=a99171228d167224e376cf584739daf624ebaf71 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; }