* @param Config $config
*/
function __construct( Config $config = null ) {
- $this->data = array();
+ $this->data = [];
$this->translator = new MediaWikiI18N();
if ( $config === null ) {
wfDebug( __METHOD__ . ' was called with no Config instance passed to it' );
/**
* @private
* @param string $str
- * @return string
*/
function text( $str ) {
echo htmlspecialchars( $this->data[$str] );
/**
* @private
* @param string $str
- * @return string
*/
function html( $str ) {
echo $this->data[$str];
/**
* @private
* @param string $str
- * @return string
*/
function msg( $str ) {
echo htmlspecialchars( $this->translator->translate( $str ) );
/**
* @private
* @param string $str
- * @return string
*/
function msgHtml( $str ) {
echo $this->translator->translate( $str );
* An ugly, ugly hack.
* @private
* @param string $str
- * @return string
*/
function msgWiki( $str ) {
global $wgOut;