File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,11 +296,11 @@ function AMP_CreateAccount(array $params)
296296 $ requiredTags = explode (', ' , trim ($ params ['configoption3 ' ]));
297297
298298 foreach ($ params ['configoptions ' ] as $ key => $ value ) {
299- if ($ key [0 ] == '+ ' )
299+ if ($ key [0 ] == '+ ' || $ key [ 0 ] == ' $ ' )
300300 {
301301 $ extraProvisionSettings [$ key ] = $ value ;
302302 }
303- if ($ key [0 ] == '@ ' )
303+ elseif ($ key [0 ] == '@ ' )
304304 {
305305 $ requiredTags [] = $ value ;
306306 }
@@ -310,7 +310,7 @@ function AMP_CreateAccount(array $params)
310310 'TemplateID ' => $ provisioningTemplateId ,
311311 'NewUsername ' => $ username ,
312312 'NewPassword ' => $ password ,
313- 'Tag ' => $ params ['model ' ]-> orderid ,
313+ 'Tag ' => $ params ['serviceid ' ] ,
314314 'FriendlyName ' => '' ,
315315 'Secret ' => 'secretwhmcs ' . $ params ['serviceid ' ],
316316 'PostCreate ' => $ postCreate ,
You can’t perform that action at this time.
0 commit comments