X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FQuickTemplate.php;h=e5d272c0cbb99b3052a5546aacc93bf706720f93;hb=50c3fdc2db6346b1025e7549bd9792e2ef2a0e22;hp=905e537e580f604a1bb8c50d5ba3cc6a0c3326b9;hpb=67322efbafd9838e1ac54a92a911c3528388e095;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/QuickTemplate.php b/includes/skins/QuickTemplate.php index 905e537e58..e5d272c0cb 100644 --- a/includes/skins/QuickTemplate.php +++ b/includes/skins/QuickTemplate.php @@ -32,7 +32,7 @@ abstract class QuickTemplate { * @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' ); @@ -103,7 +103,6 @@ abstract class QuickTemplate { /** * @private * @param string $str - * @return string */ function text( $str ) { echo htmlspecialchars( $this->data[$str] ); @@ -112,7 +111,6 @@ abstract class QuickTemplate { /** * @private * @param string $str - * @return string */ function html( $str ) { echo $this->data[$str]; @@ -121,7 +119,6 @@ abstract class QuickTemplate { /** * @private * @param string $str - * @return string */ function msg( $str ) { echo htmlspecialchars( $this->translator->translate( $str ) ); @@ -130,7 +127,6 @@ abstract class QuickTemplate { /** * @private * @param string $str - * @return string */ function msgHtml( $str ) { echo $this->translator->translate( $str ); @@ -140,7 +136,6 @@ abstract class QuickTemplate { * An ugly, ugly hack. * @private * @param string $str - * @return string */ function msgWiki( $str ) { global $wgOut;