diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index dd98bcbd88..b7e9d39290 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -199,7 +199,7 @@ function PMA_pluginGetChoice($section, $name, &$list, $cfgname = null) $plugin_name = strtolower(substr(get_class($plugin), strlen($section))); $ret .= ''. "\n"; } - + return $ret; } @@ -245,137 +245,141 @@ function PMA_pluginGetOneOption( } } - if (! isset($properties)) { $not_subgroup_header = true; - $properties = $propertyGroup->getProperties(); + if (method_exists($propertyGroup, 'getProperties')) { + $properties = $propertyGroup->getProperties(); + } } - foreach ($properties as $propertyItem) { - $property_class = get_class($propertyItem); - // if the property is a subgroup, we deal with it recursively - if (strpos($property_class, "Subgroup")) { - // for subgroups - // each subgroup can have a header, which may also be a form element - $subgroup_header = $propertyItem->getSubgroupHeader(); - if (isset($subgroup_header)) { - $ret .= PMA_pluginGetOneOption( + + if (isset($properties)) { + foreach ($properties as $propertyItem) { + $property_class = get_class($propertyItem); + // if the property is a subgroup, we deal with it recursively + if (strpos($property_class, "Subgroup")) { + // for subgroups + // each subgroup can have a header, which may also be a form element + $subgroup_header = $propertyItem->getSubgroupHeader(); + if (isset($subgroup_header)) { + $ret .= PMA_pluginGetOneOption( + $section, + $plugin_name, + $subgroup_header + ); + } + + $ret .= '
' . PMA_getString($propertyItem->getText()) . '
'; - break; - case "RadioPropertyItem": - $default = PMA_pluginGetDefault($section, $plugin_name . '_' - . $propertyItem->getName()); - foreach ($propertyItem->getValues() as $key => $val) { - $ret .= '