mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-13 17:53:17 +00:00
Remove whitespace at the end of lines
Change-Id: Icccee7461ecff22cbc5076df9f3803b6c2e29f28
This commit is contained in:
parent
c91e62b74f
commit
64b286d04e
|
@ -19,11 +19,11 @@ class CodeEditorHooks {
|
|||
if( preg_match( '/\.css$/', $title->getText() ) )
|
||||
return 'css';
|
||||
}
|
||||
|
||||
|
||||
// Give extensions a chance
|
||||
$lang = null;
|
||||
wfRunHooks( 'CodeEditorGetPageLanguage', array( $title, &$lang ) );
|
||||
|
||||
|
||||
return $lang;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ class CodeEditorHooks {
|
|||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static function editPageShowEditFormInitial( $editpage, $output ) {
|
||||
$lang = self::getPageLanguage( $editpage->getContextTitle() );
|
||||
if ( $lang && $output->getUser()->getOption( 'usebetatoolbar' ) ) {
|
||||
|
@ -50,7 +50,7 @@ class CodeEditorHooks {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static function onBeforePageDisplay( $out, $skin ) {
|
||||
global $wgCodeEditorGeshiIntegration;
|
||||
if ( $wgCodeEditorGeshiIntegration ) {
|
||||
|
|
Loading…
Reference in a new issue