X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FQuickTemplate.php;h=e0ceab52154235a3467379d36d9a34bb4a156fe2;hb=12601ff7d2796752404bfb331fccc41083d31f9f;hp=e5d272c0cbb99b3052a5546aacc93bf706720f93;hpb=a303296f2730d6279a249bde77f3e0b9b42e494f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/QuickTemplate.php b/includes/skins/QuickTemplate.php index e5d272c0cb..e0ceab5215 100644 --- a/includes/skins/QuickTemplate.php +++ b/includes/skins/QuickTemplate.php @@ -17,6 +17,7 @@ * * @file */ +use MediaWiki\MediaWikiServices; /** * Generic wrapper for template functions, with interface @@ -25,6 +26,16 @@ */ abstract class QuickTemplate { + /** + * @var array + */ + public $data; + + /** + * @var MediaWikiI18N + */ + public $translator; + /** @var Config $config */ protected $config; @@ -36,7 +47,7 @@ abstract class QuickTemplate { $this->translator = new MediaWikiI18N(); if ( $config === null ) { wfDebug( __METHOD__ . ' was called with no Config instance passed to it' ); - $config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $config = MediaWikiServices::getInstance()->getMainConfig(); } $this->config = $config; }