Closed adrelanos closed 1 year ago
It looks like……
$wgHooks['SetupAfterCache'][] = function(){
\Bootstrap\BootstrapManager::getInstance()->addAllBootstrapModules();
return true;
};
$wgHooks['ParserAfterParse'][]=function( Parser &$parser, &$text, StripState &$stripState ){
$parser->getOutput()->addModuleStyles( ['ext.bootstrap.styles'] );
$parser->getOutput()->addModules( ['ext.bootstrap.scripts'] );
return true;
};
Just needs to be modified like this,and it works.
The instructions have been updated on https://www.mediawiki.org/wiki/Extension:Bootstrap
Installation instructions...
Now leading to...
Since MediaWiki version
1.38.2
.