jenkins-bot has submitted this change and it was merged.

Change subject: Use Tab instead of Space as per PHP codesniffer
......................................................................


Use Tab instead of Space as per PHP codesniffer

Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf
---
M img_auth.php
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Amire80: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/img_auth.php b/img_auth.php
index 7765dd3..391fb29 100644
--- a/img_auth.php
+++ b/img_auth.php
@@ -92,11 +92,11 @@
                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 ),

-- 
To view, visit https://gerrit.wikimedia.org/r/118799
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to