Merge "Show ParserOutput warning instead of on the actual page output for ignored...
[lhc/web/wiklou.git] / includes / parser / CoreParserFunctions.php
index 1718557..01cce02 100644 (file)
@@ -775,6 +775,10 @@ class CoreParserFunctions {
                // fetch revision from cache/database and return the value
                $rev = self::getCachedRevisionObject( $parser, $title );
                $length = $rev ? $rev->getSize() : 0;
+               if ( $length === null ) {
+                       // We've had bugs where rev_len was not being recorded for empty pages, see T135414
+                       $length = 0;
+               }
                return self::formatRaw( $length, $raw );
        }