Ignore:
Timestamp:
Jan 3, 2015, 8:40:52 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Do not need preload tariffs anymore. They were replaced by more generalized services.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php

    r625 r724  
    4949$InInterface = 'ifb0';
    5050$InetInterface = $Config['MainRouter']['InetInterface'];
    51 $FreeInetSpeed = $Finance->Tariffs[TARIFF_FREE]['InternetSpeedMax'];
     51
     52$DbResult = $System->Database->select('Service', '*', '(`ReplaceId` IS NULL) AND (`Id`='.TARIFF_FREE.')');
     53if($DbResult->num_rows == 1)
     54{
     55        $Service = $DbResult->fetch_array();
     56  $FreeInetSpeed = $Service['InternetSpeedMax'] * 1000;
     57} else $FreeInetSpeed = 0;
    5258
    5359$ItemsQueue = array();
Note: See TracChangeset for help on using the changeset viewer.