getDB()->getType(); $updater->addExtensionTable('aitoolbox_usage', $dir . $type . '/aitoolbox_usage.sql'); } public static function onLoad(\OutputPage $outputPage) { $user = $outputPage->getUser(); $permissionManager = MediaWikiServices::getInstance()->getPermissionManager(); if ($user->isRegistered() && $permissionManager->userHasRight($user, 'chatcomplete')) { $outputPage->addModules(["ext.isekai.ai-toolbox.launcher"]); } } public static function onResourceLoaderGetConfigVars(array &$vars, string $skin, Config $config){ $vars['wgIsekaiAIToolboxFrontendUrl'] = $config->get('IsekaiAIToolboxFrontendUrl'); } }