cleanup
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1076ab8796
commit
3352548b50
2 changed files with 16 additions and 16 deletions
|
@ -7,7 +7,7 @@
|
||||||
"license-name": "AGPL",
|
"license-name": "AGPL",
|
||||||
"type": "other",
|
"type": "other",
|
||||||
"AutoloadNamespaces": {
|
"AutoloadNamespaces": {
|
||||||
"MediaWiki\\Extension\\BigBuffet\\": "includes/"
|
"MediaWiki\\Extension\\BigBuffet\\": "src/"
|
||||||
},
|
},
|
||||||
"SpecialPages": {
|
"SpecialPages": {
|
||||||
"BigBuffet": "MediaWiki\\Extension\\BigBuffet\\SpecialBigBuffet"
|
"BigBuffet": "MediaWiki\\Extension\\BigBuffet\\SpecialBigBuffet"
|
||||||
|
|
|
@ -21,20 +21,20 @@ class SpecialBigBuffet extends \SpecialPage
|
||||||
$basename = $config->get('BigBuffetBasename');
|
$basename = $config->get('BigBuffetBasename');
|
||||||
$baseurl = $config->get('BigBuffetBaseUrl');
|
$baseurl = $config->get('BigBuffetBaseUrl');
|
||||||
|
|
||||||
$wikitext = '
|
$html = '
|
||||||
<script defer="defer" src="/extensions/BigBuffet/script/index.js"></script>
|
<script defer="defer" src="/extensions/BigBuffet/resources/index.js"></script>
|
||||||
<div id="bigbuffet" class="text-base"></div>
|
<div id="bigbuffet" class="text-base"></div>
|
||||||
<script>
|
<script>
|
||||||
window.BIG_BUFFET_CONFIG = {
|
window.BIG_BUFFET_CONFIG = {
|
||||||
basename:' . json_encode($basename) . ',
|
basename: ' . json_encode($basename) . ',
|
||||||
baseUrl:' . json_encode($baseurl) . ',
|
baseUrl: ' . json_encode($baseurl) . ',
|
||||||
mountPoint: "bigbuffet",
|
mountPoint: "bigbuffet",
|
||||||
styles: ["default", "generated"],
|
styles: ["default", "generated"],
|
||||||
icons: {},
|
icons: {},
|
||||||
locale:' . json_encode($locale) . '
|
locale: ' . json_encode($locale) . '
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
';
|
';
|
||||||
$output->addHTML($wikitext);
|
$output->addHTML($html);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue