Merge "Use CodeEditor for user css/js subpages"

This commit is contained in:
jenkins-bot 2013-06-10 17:41:44 +00:00 committed by Gerrit Code Review
commit b670511574

View file

@ -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() ) )