includes/skins/QuickTemplate.php 1 location
|
@@ 37-40 (lines=4) @@
|
34 |
|
function __construct( Config $config = null ) { |
35 |
|
$this->data = []; |
36 |
|
$this->translator = new MediaWikiI18N(); |
37 |
|
if ( $config === null ) { |
38 |
|
wfDebug( __METHOD__ . ' was called with no Config instance passed to it' ); |
39 |
|
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); |
40 |
|
} |
41 |
|
$this->config = $config; |
42 |
|
} |
43 |
|
|
includes/specials/SpecialUndelete.php 1 location
|
@@ 47-50 (lines=4) @@
|
44 |
|
throw new MWException( __METHOD__ . ' given a null title.' ); |
45 |
|
} |
46 |
|
$this->title = $title; |
47 |
|
if ( $config === null ) { |
48 |
|
wfDebug( __METHOD__ . ' did not have a Config object passed to it' ); |
49 |
|
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); |
50 |
|
} |
51 |
|
$this->config = $config; |
52 |
|
} |
53 |
|
|
includes/specials/SpecialEmailuser.php 1 location
|
@@ 224-227 (lines=4) @@
|
221 |
|
* @return string|null Null on success or string on error |
222 |
|
*/ |
223 |
|
public static function getPermissionsError( $user, $editToken, Config $config = null ) { |
224 |
|
if ( $config === null ) { |
225 |
|
wfDebug( __METHOD__ . ' called without a Config instance passed to it' ); |
226 |
|
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); |
227 |
|
} |
228 |
|
if ( !$config->get( 'EnableEmail' ) || !$config->get( 'EnableUserEmail' ) ) { |
229 |
|
return 'usermaildisabled'; |
230 |
|
} |
includes/specials/SpecialUpload.php 1 location
|
@@ 589-592 (lines=4) @@
|
586 |
|
public static function getInitialPageText( $comment = '', $license = '', |
587 |
|
$copyStatus = '', $source = '', Config $config = null |
588 |
|
) { |
589 |
|
if ( $config === null ) { |
590 |
|
wfDebug( __METHOD__ . ' called without a Config instance passed to it' ); |
591 |
|
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); |
592 |
|
} |
593 |
|
|
594 |
|
$msg = []; |
595 |
|
$forceUIMsgAsContentMsg = (array)$config->get( 'ForceUIMsgAsContentMsg' ); |