fix create subscription_plan_id

This commit is contained in:
vedatakd 2019-09-17 15:13:36 +03:00
parent a3ccbcfb69
commit c693b0e556

View File

@ -196,9 +196,9 @@ class UserAuthenticator
if($this->advModel->is_enabled('cloudsite')) if($this->advModel->is_enabled('cloudsite'))
{ {
$userPlan = new UserModel(); $userPlan = new UserModel();
$userPlan->addPlanAjaxUser($planParams); $plan = $userPlan->addPlanAjaxUser($planParams);
$siteModel = new SiteModel(); $siteModel = new SiteModel();
$siteModel->createSite($all['subdomain'], $user->id, $opassword, $planParams['plan']); //Create Site $siteModel->createSite($all['subdomain'], $user->id, $opassword, $plan->id); //Create Site
$this->events->dispatch(new CreateSite($all, $this->settings)); $this->events->dispatch(new CreateSite($all, $this->settings));
} }