From: Kartik Mistry Date: Sat, 15 Mar 2014 08:59:41 +0000 (+0530) Subject: Use Tab instead of Space as per PHP codesniffer X-Git-Tag: 1.31.0-rc.0~16612 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=7cbd4c8c21d6115a9244f9f18af0cb351e2d10d1;p=lhc%2Fweb%2Fwiklou.git Use Tab instead of Space as per PHP codesniffer Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf --- diff --git a/img_auth.php b/img_auth.php index 7765dd3cc6..391fb291b8 100644 --- a/img_auth.php +++ b/img_auth.php @@ -92,11 +92,11 @@ function wfImageAuthMain() { if ( strpos( $path, $prefix ) === 0 ) { $be = FileBackendGroup::singleton()->backendFromPath( $storageDir ); $filename = $storageDir . substr( $path, strlen( $prefix ) ); // strip prefix - // Check basic user authorization - if ( !RequestContext::getMain()->getUser()->isAllowed( 'read' ) ) { - wfForbidden( 'img-auth-accessdenied', 'img-auth-noread', $path ); - return; - } + // Check basic user authorization + if ( !RequestContext::getMain()->getUser()->isAllowed( 'read' ) ) { + wfForbidden( 'img-auth-accessdenied', 'img-auth-noread', $path ); + return; + } if ( $be->fileExists( array( 'src' => $filename ) ) ) { wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." ); $be->streamFile( array( 'src' => $filename ),