203function wfForbidden( $msg1, $msg2, ...$args ) {
204 global $wgImgAuthDetails;
206 $args = ( isset( $args[0] ) && is_array( $args[0] ) ) ? $args[0] : $args;
208 $msgHdr = wfMessage( $msg1 )->escaped();
209 $detailMsgKey = $wgImgAuthDetails ? $msg2 : 'badaccess-group0
';
210 $detailMsg = wfMessage( $detailMsgKey, $args )->escaped();
212 wfDebugLog( 'img_auth
',
213 "wfForbidden Hdr: " . wfMessage( $msg1 )->inLanguage( 'en
' )->text() . " Msg: " .
214 wfMessage( $msg2, $args )->inLanguage( 'en
' )->text()
217 HttpStatus::header( 403 );
218 header( 'Cache-Control: no-cache
' );
219 header( 'Content-Type: text/html; charset=utf-8
' );
224<meta charset="UTF-8" />
225<title>$msgHdr</title>
Base interface for content objects.