Merge "Various code cleanup to JobRunner"
[lhc/web/wiklou.git] / includes / content / WikitextContent.php
index e774735..3b449b6 100644 (file)
@@ -104,7 +104,6 @@ class WikitextContent extends TextContent {
 
                $newContent = new static( $text );
 
-
                return $newContent;
        }
 
@@ -274,12 +273,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