X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fskins%2FMediaWikiI18N.php;h=970290af91d32f53a50243ed39120765cd8d9a0e;hb=8fd5a99f4e261d37cd7237a1992b1bcf03a764d3;hp=7fcdb3c96bb01660fda7746d3fd5ca7713a0264d;hpb=884a54e910dc5b6f961b43a1f808da93bf2c8af3;p=lhc%2Fweb%2Fwiklou.git 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 );