diff --git a/src/PluginTrait.php b/src/PluginTrait.php index 75d75fb..7c033ef 100644 --- a/src/PluginTrait.php +++ b/src/PluginTrait.php @@ -123,7 +123,7 @@ function(RegisterComponentTypesEvent $event) { $encodedSettings = Json::encode([ 'sessionSourceId' => $settings->sessionSourceId, 'deploymentSiteId' => $settings->deploymentSiteId, - 'qbankBaseDomain' => $settings->qbankBaseDomain, + 'qbankBaseDomain' => $settings->getBaseDomain(), 'qbankBaseUrl' => $settings->qbankBaseUrl, ]); $view = Craft::$app->getView(); diff --git a/src/helpers/UrlHelper.php b/src/helpers/UrlHelper.php new file mode 100644 index 0000000..dcd6e2a --- /dev/null +++ b/src/helpers/UrlHelper.php @@ -0,0 +1,46 @@ +qbankBaseDomain, 'sales.qbank.se'); + } - /** - * @inheritdoc - */ public function rules() { return [