Topic on Extension talk:HeadScript/Flow

Instead of installing this extension...

3
WikiTeq (talkcontribs)

... which might be easier but also might cause problems, you could just add this to your LocalSettings.php:

$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
     $code = <<<'START_END_MARKER'
<script></script>
<script></script>
<script></script>
START_END_MARKER;

     $out->addHeadItem( 'my-wonderful-script', $code );
     return true;
};

It does exactly the same thing as this extension.

104.142.125.214 (talkcontribs)

This grays out everything afterwards in LocalSettings.php in MediaWiki 32. Any idea how to fix?

104.142.125.214 (talkcontribs)
Reply to "Instead of installing this extension..."