From: Jeroen De Dauw Date: Tue, 13 Dec 2011 16:42:56 +0000 (+0000) Subject: Follow up to r106037; fix location of check X-Git-Tag: 1.31.0-rc.0~26002 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=e04afc0bd0498e2df021bdb4288a8c6ee82bd4b3;p=lhc%2Fweb%2Fwiklou.git Follow up to r106037; fix location of check --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5fdcf2a011..ce60d594c2 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3460,10 +3460,10 @@ function wfDeprecated( $function, $version = false, $component = false ) { if ( !isset( $functionsWarned[$function] ) ) { $functionsWarned[$function] = true; - if ( $version && $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