mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
#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,
|
int $page=0,
|
||||||
string $msg='Default message. Not set.',
|
string $msg='Default message. Not set.',
|
||||||
string $icon='images/wizard/applications.png',
|
string $icon='images/wizard/applications.png',
|
||||||
string $label='Applications (legacy)'
|
string $label='Applications'
|
||||||
) {
|
) {
|
||||||
$this->setBreadcrum([]);
|
$this->setBreadcrum([]);
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ class Cloud extends Wizard
|
|||||||
int $page=0,
|
int $page=0,
|
||||||
string $msg='Default message. Not set.',
|
string $msg='Default message. Not set.',
|
||||||
string $icon='images/wizard/cloud.png',
|
string $icon='images/wizard/cloud.png',
|
||||||
string $label='Cloud (legacy)'
|
string $label='Cloud'
|
||||||
) {
|
) {
|
||||||
$this->setBreadcrum([]);
|
$this->setBreadcrum([]);
|
||||||
|
|
||||||
|
@ -210,9 +210,18 @@ class ExtensionsDiscovery extends Wizard
|
|||||||
$logo = $this->defaultLogo;
|
$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[] = [
|
$extensions[] = [
|
||||||
'icon' => $logo,
|
'icon' => $logo,
|
||||||
'label' => $extension['name'],
|
'label' => $extension_name,
|
||||||
'url' => ui_get_full_url(
|
'url' => ui_get_full_url(
|
||||||
'index.php?sec=gservers&sec2=godmode/servers/discovery&wiz='.$this->section.'&mode='.$extension['short_name']
|
'index.php?sec=gservers&sec2=godmode/servers/discovery&wiz='.$this->section.'&mode='.$extension['short_name']
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user