Added version to disabled extensions

This commit is contained in:
fermin831 2017-03-01 11:50:55 +01:00
parent 1c88b6370b
commit 8e0dd33c85
3 changed files with 11 additions and 19 deletions

View File

@ -183,21 +183,15 @@ foreach ($extensions as $file => $extension) {
//Get version of this extensions
if ($config['extensions'][$file]['operation_menu']) {
$data[] = $config['extensions'][$file]['operation_menu']['version'];
}
if ($config['extensions'][$file]['godmode_menu']) {
} else if ($config['extensions'][$file]['godmode_menu']) {
$data[] = $config['extensions'][$file]['godmode_menu']['version'];
}
if ($config['extensions'][$file]['extension_ope_tab']) {
} else if ($config['extensions'][$file]['extension_ope_tab']) {
$data[] = $config['extensions'][$file]['extension_ope_tab']['version'];
}
else if ($config['extensions'][$file]['extension_god_tab']) {
} else if ($config['extensions'][$file]['extension_god_tab']) {
$data[] = $config['extensions'][$file]['extension_god_tab']['version'];
} else {
$data[] = __('N/A');
}
}
else {
$data[] = $file;
@ -205,17 +199,15 @@ foreach ($extensions as $file => $extension) {
//Get version of this extension
if ($config['extensions'][$file]['operation_menu']) {
$data[] = $config['extensions'][$file]['operation_menu']['version'];
}
else if ($config['extensions'][$file]['godmode_menu']) {
} else if ($config['extensions'][$file]['godmode_menu']) {
$data[] = $config['extensions'][$file]['godmode_menu']['version'];
}
else if (isset($config['extensions'][$file]['extension_ope_tab'])) {
} else if (isset($config['extensions'][$file]['extension_ope_tab'])) {
$data[] = $config['extensions'][$file]['extension_ope_tab']['version'];
}
else if ($config['extensions'][$file]['extension_god_tab']) {
} else if ($config['extensions'][$file]['extension_god_tab']) {
$data[] = $config['extensions'][$file]['extension_god_tab']['version'];
}
} else {
$data[] = __('N/A');
}
}
if ($extension['enterprise']) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 508 B

After

Width:  |  Height:  |  Size: 282 B