dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Replace Linker::link() usage with LinkRenderer"
[lhc/web/wiklou.git]
/
includes
/
TemplateParser.php
diff --git
a/includes/TemplateParser.php
b/includes/TemplateParser.php
index
a1e6d5b
..
470a75c
100644
(file)
--- a/
includes/TemplateParser.php
+++ b/
includes/TemplateParser.php
@@
-1,4
+1,6
@@
<?php
<?php
+use MediaWiki\MediaWikiServices;
+
/**
* Handles compiling Mustache templates into PHP rendering functions
*
/**
* Handles compiling Mustache templates into PHP rendering functions
*
@@
-98,7
+100,7
@@
class TemplateParser {
$fastHash = md5( $fileContents );
// Fetch a secret key for building a keyed hash of the PHP code
$fastHash = md5( $fileContents );
// Fetch a secret key for building a keyed hash of the PHP code
- $config =
ConfigFactory::getDefaultInstance()->makeConfig( 'main'
);
+ $config =
MediaWikiServices::getInstance()->getMainConfig(
);
$secretKey = $config->get( 'SecretKey' );
if ( $secretKey ) {
$secretKey = $config->get( 'SecretKey' );
if ( $secretKey ) {