X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=b3a34955def2730b0fd70857bfcb9f04d7ec09cd;hb=6687eefb57e6e47f91edbc6ad68088f82dad1f5c;hp=d7125897c5f9941e629bb361aa961067ec3888ac;hpb=ffe6613ff7be18184e6e56a70be13d8151e17c8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index d7125897c5..b3a34955de 100644 --- a/img_auth.php +++ b/img_auth.php @@ -43,7 +43,7 @@ define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); if ( isset( $_SERVER['MW_COMPILED'] ) ) { require ( 'core/includes/WebStart.php' ); } else { - require ( dirname( __FILE__ ) . '/includes/WebStart.php' ); + require ( __DIR__ . '/includes/WebStart.php' ); } wfProfileIn( 'img_auth.php' ); @@ -148,13 +148,13 @@ function wfForbidden( $msg1, $msg2 ) { array_shift( $args ); array_shift( $args ); - $msgHdr = htmlspecialchars( wfMsg( $msg1 ) ); + $msgHdr = wfMessage( $msg1 )->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' );