Procházet zdrojové kódy

add usage vs qtymin calc

andre před 4 roky
rodič
revize
508bbe8e4a
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      productressources.php

+ 2 - 1
productressources.php

@@ -26,6 +26,7 @@ require("../../init.php");
 
 $whmcs = App::self();
 $pid = (int) $whmcs->get_req_var('pid');
+$id = (int) $whmcs->get_req_var('id');
 $get = $whmcs->get_req_var('get');
 $language = $whmcs->get_req_var('language') ?: null;
 $data = array();
@@ -63,7 +64,7 @@ $configOptions = Capsule::table('tblproductconfigoptions')
 $ressource = new ResourceManager();
 
 print_r($_GET);
-widgetOutput($pid);
+widgetOutput($ressource->vcpus()->getUsed());
 
 function widgetOutput($value) {
     echo "document.write('".addslashes($value)."');";