X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FMediaWikiI18N.php;h=970290af91d32f53a50243ed39120765cd8d9a0e;hp=7fcdb3c96bb01660fda7746d3fd5ca7713a0264d;hb=8fd5a99f4e261d37cd7237a1992b1bcf03a764d3;hpb=06d611a3997a63fc54f7141ed9fa3105c9d0a8e4 diff --git a/includes/skins/MediaWikiI18N.php b/includes/skins/MediaWikiI18N.php index 7fcdb3c96b..970290af91 100644 --- a/includes/skins/MediaWikiI18N.php +++ b/includes/skins/MediaWikiI18N.php @@ -28,11 +28,20 @@ class MediaWikiI18N { private $context = []; + /** + * @deprecate since 1.31 Use BaseTemplate::msg() or Skin::msg() instead for setting + * message parameters. + */ function set( $varName, $value ) { + wfDeprecated( __METHOD__, '1.31' ); $this->context[$varName] = $value; } + /** + * @deprecate since 1.31 Use BaseTemplate::msg(), Skin::msg(), or wfMessage() instead. + */ function translate( $value ) { + wfDeprecated( __METHOD__, '1.31' ); // Hack for i18n:attributes in PHPTAL 1.0.0 dev version as of 2004-10-23 $value = preg_replace( '/^string:/', '', $value );