diff options
author | Aryeh Gregor <ayg@aryeh.name> | 2022-04-25 18:19:41 +0300 |
---|---|---|
committer | Aryeh Gregor <ayg@aryeh.name> | 2022-04-26 14:31:26 +0300 |
commit | 4a52bf553f3040503f4ce9f6de90b106bc3a9db7 (patch) | |
tree | 11dc34aecb3cb3bbe3d339fd44f8fdc25da31b79 /includes/htmlform/fields/HTMLRadioField.php | |
parent | fd762bb138f8091507b9683c3913b8576e4ec582 (diff) | |
download | mediawikicore-4a52bf553f3040503f4ce9f6de90b106bc3a9db7.tar.gz mediawikicore-4a52bf553f3040503f4ce9f6de90b106bc3a9db7.zip |
Use MainConfigNames instead of string literals, #3
This edition brought to you by:
grep -ERIn $(grep -o "'[A-Za-z0-9_]*'" includes/MainConfigNames.php | tr
"\n" '|' | sed 's/|$/\n/') includes/
I only corrected a fraction of the results provided by that command. I'm
submitting the partial patch now so it doesn't bitrot.
Bug: T305805
Change-Id: If1918c0b3d88cdf90403921e4310740e206d6962
Diffstat (limited to 'includes/htmlform/fields/HTMLRadioField.php')
-rw-r--r-- | includes/htmlform/fields/HTMLRadioField.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/htmlform/fields/HTMLRadioField.php b/includes/htmlform/fields/HTMLRadioField.php index a6cbaef7924d..aaae08949bb0 100644 --- a/includes/htmlform/fields/HTMLRadioField.php +++ b/includes/htmlform/fields/HTMLRadioField.php @@ -1,5 +1,6 @@ <?php +use MediaWiki\MainConfigNames; use MediaWiki\MediaWikiServices; /** @@ -80,7 +81,7 @@ class HTMLRadioField extends HTMLFormField { public function formatOptions( $options, $value ) { $useMediaWikiUIEverywhere = MediaWikiServices::getInstance() - ->getMainConfig()->get( 'UseMediaWikiUIEverywhere' ); + ->getMainConfig()->get( MainConfigNames::UseMediaWikiUIEverywhere ); $html = ''; |