#9771 added custom section in discovery

This commit is contained in:
Daniel Cebrian 2023-04-17 13:40:15 +02:00
parent 60700000fe
commit 59271429b3
1 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,9 @@ function get_wiz_class($str)
case 'magextensions':
return 'ManageExtensions';
case 'custom':
return 'Custom';
default:
// Main, show header.
ui_print_standard_header(
@ -172,6 +175,12 @@ if ($classname_selected === null) {
$classname = basename($classpath, '.class.php');
$obj = new $classname();
if (method_exists($obj, 'isEmpty') === true) {
if ($obj->isEmpty() === true) {
continue;
}
}
$button = $obj->load();
if ($button === false) {