Use Tab instead of Space as per PHP codesniffer
authorKartik Mistry <kartik.mistry@gmail.com>
Sat, 15 Mar 2014 08:59:41 +0000 (14:29 +0530)
committerKartik Mistry <kartik.mistry@gmail.com>
Sat, 15 Mar 2014 09:01:49 +0000 (14:31 +0530)
Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf

img_auth.php

index 7765dd3..391fb29 100644 (file)
@@ -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 ),