Throw an exception if Parser::disableCache is called before mOutput initialized ...
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 41d2494..ce60d59 100644 (file)
@@ -3463,7 +3463,7 @@ function wfDeprecated( $function, $version = false, $component = false ) {
                if ( $version ) {
                        global $wgDeprecationReleaseLimit;
                        
-                       if ( $wgDeprecationReleaseLimit ) {
+                       if ( $wgDeprecationReleaseLimit && $component === false ) {
                                # Strip -* off the end of $version so that branches can use the
                                # format #.##-branchname to avoid issues if the branch is merged into
                                # a version of MediaWiki later than what it was branched from