Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/51821


Change subject: Fix indenting
......................................................................

Fix indenting

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MagicNoCache 
refs/changes/21/51821/1

diff --git a/MagicNoCache.php b/MagicNoCache.php
index 584de89..47c13d4 100644
--- a/MagicNoCache.php
+++ b/MagicNoCache.php
@@ -57,11 +57,11 @@
                global $wgOut, $wgAction;
                $mw = MagicWord::get('MAG_NOCACHE');
 
-       // if it is there, remove it and disable caching
-       if ( !in_array( $wgAction, array( 'submit', 'edit') ) && 
$mw->matchAndRemove($text) ) {
-               $parser->disableCache();
-               $wgOut->enableClientCache(false);
+               // if it is there, remove it and disable caching
+               if ( !in_array( $wgAction, array( 'submit', 'edit') ) && 
$mw->matchAndRemove($text) ) {
+                       $parser->disableCache();
+                       $wgOut->enableClientCache(false);
                }
-       return true;
+               return true;
        }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I972412bb7a7a675e1746174d8e02a9faac256414
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MagicNoCache
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

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

Reply via email to