SemanticMediaWiki / Mermaid

Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
https://www.mediawiki.org/wiki/Extension:Mermaid
Other
36 stars 23 forks source link

Cannot change default theme in Localsettings #32

Closed krabina closed 5 years ago

krabina commented 5 years ago

Setup and configuration

Issue

If I change https://github.com/SemanticMediaWiki/Mermaid/blob/24a25357e3ed9bf9425bc9e183455d7a75b47cb0/DefaultSettings.php#L18 to $GLOBALS['mermaidgDefaultTheme'] = 'neutral'; it works.

However, this should be done in LocalSettings.php, but I can't figure out how. None of these work:

$mermaidgDefaultTheme = 'neutral';
$wgmermaidgDefaultTheme = 'neutral';
$wgMermaidgDefaultTheme = 'neutral';
$GLOBALS['mermaidgDefaultTheme'] = 'neutral';