Quellcode durchsuchen

add usage vs qtymin calc

andre vor 4 Jahren
Ursprung
Commit
508bbe8e4a
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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)."');";