Drop wgCodeEditorEnableCore, default on, pointless to disable

Change-Id: I637ac6cc92183dbf73b6bb39d487c6d4099657be
This commit is contained in:
James D. Forrester 2019-07-12 10:58:50 -07:00
parent fd3f2bd2e6
commit 988bc3c0b1
2 changed files with 6 additions and 13 deletions

View file

@ -31,9 +31,6 @@
"i18n"
]
},
"config": {
"CodeEditorEnableCore": true
},
"DefaultUserOptions": {
"usecodeeditor": 1
},

View file

@ -8,9 +8,6 @@ class CodeEditorHooks {
* @return null|string
*/
public static function getPageLanguage( Title $title, $model, $format ) {
global $wgCodeEditorEnableCore;
if ( $wgCodeEditorEnableCore ) {
if ( $model === CONTENT_MODEL_JAVASCRIPT ) {
return 'javascript';
} elseif ( $model === CONTENT_MODEL_CSS ) {
@ -18,7 +15,6 @@ class CodeEditorHooks {
} elseif ( $model === CONTENT_MODEL_JSON ) {
return 'json';
}
}
// Give extensions a chance
// Note: $model and $format were added around the time of MediaWiki 1.28.