Merge "Implement OOUI version of tag filter in ChangeTags"
[lhc/web/wiklou.git] / includes / content / WikitextContent.php
index dbe09f9..8beae39 100644 (file)
@@ -82,7 +82,6 @@ class WikitextContent extends TextContent {
                $text = $with->getNativeData();
 
                if ( strval( $sectionId ) === '' ) {
-
                        return $with; # XXX: copy first?
                }
 
@@ -273,12 +272,11 @@ class WikitextContent extends TextContent {
                        return false;
                }
 
-               $text = $this->getNativeData();
-
                switch ( $wgArticleCountMethod ) {
                        case 'any':
                                return true;
                        case 'comma':
+                               $text = $this->getNativeData();
                                return strpos( $text, ',' ) !== false;
                        case 'link':
                                if ( $hasLinks === null ) { # not known, find out