Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-25 23:43:49 +01:00
parent 1076ab8796
commit 3352548b50
2 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,7 @@
"license-name": "AGPL",
"type": "other",
"AutoloadNamespaces": {
"MediaWiki\\Extension\\BigBuffet\\": "includes/"
"MediaWiki\\Extension\\BigBuffet\\": "src/"
},
"SpecialPages": {
"BigBuffet": "MediaWiki\\Extension\\BigBuffet\\SpecialBigBuffet"

View file

@ -21,8 +21,8 @@ class SpecialBigBuffet extends \SpecialPage
$basename = $config->get('BigBuffetBasename');
$baseurl = $config->get('BigBuffetBaseUrl');
$wikitext = '
<script defer="defer" src="/extensions/BigBuffet/script/index.js"></script>
$html = '
<script defer="defer" src="/extensions/BigBuffet/resources/index.js"></script>
<div id="bigbuffet" class="text-base"></div>
<script>
window.BIG_BUFFET_CONFIG = {
@ -35,6 +35,6 @@ class SpecialBigBuffet extends \SpecialPage
};
</script>
';
$output->addHTML($wikitext);
$output->addHTML($html);
}
}