#11843 adjusted type for extensions

This commit is contained in:
Jorge Rincon 2023-08-09 15:26:30 +02:00
parent ed9b70725d
commit 6cd5fc491b
3 changed files with 12 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class Applications extends Wizard
int $page=0,
string $msg='Default message. Not set.',
string $icon='images/wizard/applications.png',
string $label='Applications (legacy)'
string $label='Applications'
) {
$this->setBreadcrum([]);

View File

@ -89,7 +89,7 @@ class Cloud extends Wizard
int $page=0,
string $msg='Default message. Not set.',
string $icon='images/wizard/cloud.png',
string $label='Cloud (legacy)'
string $label='Cloud'
) {
$this->setBreadcrum([]);

View File

@ -210,9 +210,18 @@ class ExtensionsDiscovery extends Wizard
$logo = $this->defaultLogo;
}
// Get type of task.
$task = db_get_row(
'trecon_task',
'id_app',
$extension['id_app']
);
$task_type = (integer) $task['type'];
$extension_name = ($task_type == DISCOVERY_EXTENSION) ? $extension['name'] : $extension['name'].' (legacy)';
$extensions[] = [
'icon' => $logo,
'label' => $extension['name'],
'label' => $extension_name,
'url' => ui_get_full_url(
'index.php?sec=gservers&sec2=godmode/servers/discovery&wiz='.$this->section.'&mode='.$extension['short_name']
),