- Timestamp:
- 11/26/10 13:14:12 (18 months ago)
- Location:
- branches/1.5/libs
- Files:
-
- 2 modified
-
PluginManagement.php (modified) (1 diff)
-
SystemInfo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/libs/PluginManagement.php
r2240 r2247 67 67 $p['status'] = ($plugin_row->plugin_enabled) ? 'active' : 'inactive'; 68 68 $p['version'] = $plugin_row->plugin_version; 69 $p['latestversion'] = $plugin_row->plugin_latestversion;70 69 $p['install'] = "installed"; 71 70 $p['location'] = "database"; -
branches/1.5/libs/SystemInfo.php
r2241 r2247 103 103 104 104 // plugins: folder, enabled, version, order 105 $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order , plugin_latestversionFROM ".TABLE_PLUGINS." ORDER BY plugin_order";105 $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order FROM ".TABLE_PLUGINS." ORDER BY plugin_order"; 106 106 $plugins = $h->db->get_results($h->db->prepare($sql)); 107 107 if ($plugins) { … … 110 110 $report['hotaru_plugins'][$plugin->plugin_folder]['version'] = $plugin->plugin_version; 111 111 $report['hotaru_plugins'][$plugin->plugin_folder]['order'] = $plugin->plugin_order; 112 $report['hotaru_plugins'][$plugin->plugin_folder]['plugin_latestversion'] = $plugin->plugin_latestversion;113 112 } 114 113 } … … 237 236 $output[] = 'Plugins:'; 238 237 $output[] = '----------------------------------------------------------------------------------------------------'; 239 $output[] = '(When there is a number in parentheses after the version number, there are latest versions available at HotaruCMS.org)'; 238 240 239 if (isset($report['hotaru_plugins'])) { 241 240 foreach ($report['hotaru_plugins'] as $key => $value) { 242 $version = ($value['version'] != $value['plugin_latestversion']) ? 'v. '.$value['version'].' ('.$value['plugin_latestversion'].')' :'v. '.$value['version'];241 $version = 'v. '.$value['version']; 243 242 $output[] = sprintf("%2d. [%s] %-20s %s", $value['order'], (($value['enabled'])?'+':'-'), $key, $version ); 244 243 }