Merge "sitemaps: absolute URL for sitemaps"
[lhc/web/wiklou.git] / includes / parser / Preprocessor.php
index 627d112..b6084d8 100644 (file)
@@ -70,7 +70,7 @@ abstract class Preprocessor {
                $length = strlen( $text );
                $threshold = $config->get( 'PreprocessorCacheThreshold' );
                if ( $threshold === false || $length < $threshold || $length > 1e6 ) {
-                       return false;
+                       return;
                }
 
                $cache = ObjectCache::getLocalClusterInstance();
@@ -171,7 +171,8 @@ interface PPFrame {
        const RECOVER_COMMENTS = 16;
        const NO_TAGS = 32;
 
-       const RECOVER_ORIG = 59; // = 1|2|8|16|32 no constant expression support in PHP yet
+       const RECOVER_ORIG = self::NO_ARGS | self::NO_TEMPLATES | self::NO_IGNORE |
+               self::RECOVER_COMMENTS | self::NO_TAGS;
 
        /** This constant exists when $indexOffset is supported in newChild() */
        const SUPPORTS_INDEX_OFFSET = 1;