mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-24 00:13:28 +00:00
dc3cb203a3
Seems like it is preventing VE to open by somehow breaking Parsoid (restbase error 500) in MW 1.35.5. Disabling it for now.
21 lines
482 B
PHP
21 lines
482 B
PHP
<?php
|
|
|
|
declare( strict_types=1 );
|
|
|
|
namespace TabberNeue;
|
|
|
|
use MediaWiki\Hook\ParserFirstCallInitHook;
|
|
use Parser;
|
|
|
|
class Hooks implements ParserFirstCallInitHook {
|
|
/**
|
|
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ParserFirstCallInit
|
|
*
|
|
* @param Parser $parser
|
|
*/
|
|
public function onParserFirstCallInit( $parser ) {
|
|
$parser->setHook( 'tabber', Tabber::class . '::parserHook' );
|
|
$parser->setHook( 'tabbertransclude', TabberTransclude::class . '::parserHook' );
|
|
}
|
|
}
|