Rev 274 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 274 | Rev 275 | ||
---|---|---|---|
Line 296... | Line 296... | ||
296 | $out['text'] .= ' <th width="25%">Plugin name</th>'; |
296 | $out['text'] .= ' <th width="25%">Plugin name</th>'; |
297 | $out['text'] .= ' <th width="25%">Plugin version</th>'; |
297 | $out['text'] .= ' <th width="25%">Plugin version</th>'; |
298 | $out['text'] .= ' <th width="25%">Plugin author</th>'; |
298 | $out['text'] .= ' <th width="25%">Plugin author</th>'; |
299 | $out['text'] .= ' </tr>'; |
299 | $out['text'] .= ' </tr>'; |
300 | foreach ($plugins as $plugin) { |
300 | foreach ($plugins as $plugin) { |
301 | $active = $plugin::name() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN'); |
301 | $active = $plugin::id() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN'); |
302 | if ($active && !$show_db_active) continue; |
302 | if ($active && !$show_db_active) continue; |
303 | if (!$active && !$show_db_inactive) continue; |
303 | if (!$active && !$show_db_inactive) continue; |
304 | 304 | ||
305 | $out['text'] .= ' <tr>'; |
305 | $out['text'] .= ' <tr>'; |
306 | $pluginInfo = $plugin::getPluginInformation(); |
306 | $pluginInfo = $plugin::getPluginInformation(); |
Line 443... | Line 443... | ||
443 | $db_plugins = array(); |
443 | $db_plugins = array(); |
444 | foreach (OIDplus::getDatabasePlugins() as $plugin) { |
444 | foreach (OIDplus::getDatabasePlugins() as $plugin) { |
445 | $pluginInfo = $plugin::getPluginInformation(); |
445 | $pluginInfo = $plugin::getPluginInformation(); |
446 | $txt = (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) ? get_class($plugin) : $pluginInfo['name']; |
446 | $txt = (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) ? get_class($plugin) : $pluginInfo['name']; |
447 | 447 | ||
448 | if ($plugin::name() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN')) { |
448 | if ($plugin::id() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN')) { |
449 | $db_plugins[] = array( |
449 | $db_plugins[] = array( |
450 | 'id' => 'oidplus:system_plugins.$'.get_class($plugin), |
450 | 'id' => 'oidplus:system_plugins.$'.get_class($plugin), |
451 | 'icon' => $tree_icon_db_active, |
451 | 'icon' => $tree_icon_db_active, |
452 | 'text' => $txt, |
452 | 'text' => $txt, |
453 | ); |
453 | ); |