mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-23 23:03:46 +00:00
Merge "Use CodeEditor for user css/js subpages"
This commit is contained in:
commit
b670511574
|
@ -5,7 +5,7 @@ class CodeEditorHooks {
|
|||
global $wgCodeEditorEnableCore;
|
||||
|
||||
// Try CSS/JS
|
||||
if( $wgCodeEditorEnableCore && $title->isCssOrJsPage() ) {
|
||||
if( $wgCodeEditorEnableCore && ( $title->isCssOrJsPage() || $title->isCssJsSubpage() ) ) {
|
||||
if( preg_match( '/\.js$/', $title->getText() ) )
|
||||
return 'javascript';
|
||||
if( preg_match( '/\.css$/', $title->getText() ) )
|
||||
|
|
Loading…
Reference in a new issue