Skip to content

Commit b897bf1

Browse files
committed
updates
to cloudlinux licensing calls
1 parent 1df5de3 commit b897bf1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cloudlinux_licenses_list.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212

1313
use Detain\Cloudlinux\Cloudlinux;
1414

15+
1516
function cloudlinux_licenses_list()
1617
{
1718
if ($GLOBALS['tf']->ima == 'admin') {
19+
require_once __DIR__.'/../../../workerman/statistics/Applications/Statistics/Clients/StatisticClient.php';
1820
$table = new \TFTable;
1921
$table->set_title('CloudLinux License List');
2022
$header = false;
23+
function_requirements('get_cloudlinux_licenses');
2124
$licenses = obj2array(get_cloudlinux_licenses());
2225
$licensesValues = array_values($licenses['data']);
2326
foreach ($licensesValues as $data) {

0 commit comments

Comments
 (0)