From 7cbd4c8c21d6115a9244f9f18af0cb351e2d10d1 Mon Sep 17 00:00:00 2001 From: Kartik Mistry Date: Sat, 15 Mar 2014 14:29:41 +0530 Subject: [PATCH] Use Tab instead of Space as per PHP codesniffer Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf --- img_auth.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ), -- 2.20.1