@@ -37,10 +37,10 @@ function_requirements('class.Addon');
3737 $ service ->add_addon ($ addon );
3838 }
3939
40- public static function doEnable (\Service_Order $ serviceOrder , $ repeatInvoiceId , $ regex_match = false ) {
40+ public static function doEnable (\Service_Order $ serviceOrder , $ repeatInvoiceId , $ regexMatch = false ) {
4141 $ serviceInfo = $ serviceOrder ->getServiceInfo ();
4242 $ settings = get_module_settings ($ serviceOrder ->getModule ());
43- if ($ regex_match === false ) {
43+ if ($ regexMatch === false ) {
4444 $ db = get_module_db (self ::$ module );
4545 $ ip = website_get_next_ip ($ serviceInfo [$ settings ['PREFIX ' ].'_server ' ]);
4646 myadmin_log (self ::$ module , 'info ' , 'Trying To Give ' .$ settings ['TITLE ' ].' ' .$ serviceInfo [$ settings ['PREFIX ' ] . '_id ' ].' Repeat Invoice ' .$ repeatInvoiceId .' IP ' . ($ ip === false ? '<ip allocation failed> ' : $ ip ), __LINE__ , __FILE__ );
@@ -62,7 +62,7 @@ public static function doEnable(\Service_Order $serviceOrder, $repeatInvoiceId,
6262 admin_mail ($ subject , $ settings ['TBLNAME ' ] . " {$ serviceInfo [$ settings ['PREFIX ' ].'_id ' ]} Has Pending IPS<br> \n" . $ subject , $ headers , false , 'admin_email_vps_no_ips.tpl ' );
6363 }
6464 } else {
65- $ ip = $ regex_match ;
65+ $ ip = $ regexMatch ;
6666 $ GLOBALS ['tf ' ]->history ->add (self ::$ module . 'queue ' , $ serviceInfo [$ settings ['PREFIX ' ] . '_id ' ], 'ensure_addon_ip ' , $ ip , $ serviceInfo [$ settings ['PREFIX ' ] . '_custid ' ]);
6767 $ db ->query ("update {$ settings ['PREFIX ' ]}_ips set ips_main=0,ips_used=1,ips_ {$ settings ['PREFIX ' ]}= {$ id } where ips_ip=' {$ ip }' " , __LINE__ , __FILE__ );
6868 }
0 commit comments