X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=b3a34955def2730b0fd70857bfcb9f04d7ec09cd;hb=d45daa49d8e6eb55962c747767c5d069e23a1c92;hp=a51e5caa029070c9c1a6c7cb2c4c18678c321615;hpb=ae7408460d9a32ec7629c21b967424d72467817b;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index a51e5caa02..b3a34955de 100644 --- a/img_auth.php +++ b/img_auth.php @@ -1,5 +1,4 @@ escaped(); $detailMsgKey = $wgImgAuthDetails ? $msg2 : 'badaccess-group0'; - $detailMsg = htmlspecialchars( wfMsg( $detailMsgKey, $args ) ); + $detailMsg = wfMessage( $detailMsgKey, $args )->escaped(); wfDebugLog( 'img_auth', - "wfForbidden Hdr:" . wfMsgExt( $msg1, array( 'language' => 'en' ) ). " Msg: ". - wfMsgExt( $msg2, array( 'language' => 'en' ), $args ) + "wfForbidden Hdr:" . wfMessage( $msg1 )->inLanguage( 'en' )->text() . " Msg: ". + wfMessage( $msg2, $args )->inLanguage( 'en' )->text() ); header( 'HTTP/1.0 403 Forbidden' );