X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=ccaa8af0fcf1dcb7d141f6a77c06c7774ae17a06;hb=e5a332ba9fd728fe0531bfa8aa9cd05bc077d032;hp=b04974bf8252550224eb86c87042568f70d1aaeb;hpb=c43deebfd530415b3cf2aacb9d0b114ce867765b;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index b04974bf82..ccaa8af0fc 100644 --- a/img_auth.php +++ b/img_auth.php @@ -60,8 +60,8 @@ function wfImageAuthMain() { // See if this is a public Wiki (no protections). if ( $wgImgAuthPublicTest - && in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) ) - { + && in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) + ) { // This is a public wiki, so disable this script (for private wikis only) wfForbidden( 'img-auth-accessdenied', 'img-auth-public' ); return; @@ -106,7 +106,7 @@ function wfImageAuthMain() { // Check to see if the file exists if ( !$repo->fileExists( $filename ) ) { - wfForbidden( 'img-auth-accessdenied','img-auth-nofile', $filename ); + wfForbidden( 'img-auth-accessdenied', 'img-auth-nofile', $filename ); return; } @@ -130,7 +130,7 @@ function wfImageAuthMain() { } // Stream the requested file - wfDebugLog( 'img_auth', "Streaming `".$filename."`." ); + wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." ); $repo->streamFile( $filename, array( 'Cache-Control: private', 'Vary: Cookie' ) ); } @@ -153,8 +153,8 @@ function wfForbidden( $msg1, $msg2 ) { $detailMsg = wfMessage( $detailMsgKey, $args )->escaped(); wfDebugLog( 'img_auth', - "wfForbidden Hdr:" . wfMessage( $msg1 )->inLanguage( 'en' )->text() . " Msg: ". - wfMessage( $msg2, $args )->inLanguage( 'en' )->text() + "wfForbidden Hdr: " . wfMessage( $msg1 )->inLanguage( 'en' )->text() . " Msg: " . + wfMessage( $msg2, $args )->inLanguage( 'en' )->text() ); header( 'HTTP/1.0 403 Forbidden' );