#11843 adjusted type for extensions
This commit is contained in:
parent
ed9b70725d
commit
6cd5fc491b
|
@ -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([]);
|
||||
|
||||
|
|
|
@ -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([]);
|
||||
|
||||
|
|
|
@ -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']
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue