mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-27 16:40:07 +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;
|
global $wgCodeEditorEnableCore;
|
||||||
|
|
||||||
// Try CSS/JS
|
// Try CSS/JS
|
||||||
if( $wgCodeEditorEnableCore && $title->isCssOrJsPage() ) {
|
if( $wgCodeEditorEnableCore && ( $title->isCssOrJsPage() || $title->isCssJsSubpage() ) ) {
|
||||||
if( preg_match( '/\.js$/', $title->getText() ) )
|
if( preg_match( '/\.js$/', $title->getText() ) )
|
||||||
return 'javascript';
|
return 'javascript';
|
||||||
if( preg_match( '/\.css$/', $title->getText() ) )
|
if( preg_match( '/\.css$/', $title->getText() ) )
|
||||||
|
|
Loading…
Reference in a new issue