mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-27 16:40:07 +00:00
12 lines
259 B
PHP
12 lines
259 B
PHP
|
<?php
|
||
|
|
||
|
class CodeEditorHooks {
|
||
|
public static function editPageShowEditFormInitial( &$toolbar ) {
|
||
|
global $wgOut, $wgTitle;
|
||
|
if ( $wgTitle->isCssOrJsPage() || $wgTitle->isCssJsSubpage() ) {
|
||
|
$wgOut->addModules( 'ext.codeEditor' );
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
}
|