Changeset 1991
- Timestamp:
- 06/22/10 09:12:34 (3 years ago)
- File:
-
- 1 edited
-
branches/1.4/libs/Debug.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4/libs/Debug.php
r1918 r1991 111 111 public function generateReport($h, $type = 'log') 112 112 { 113 $sysinfo = new SystemInfo(); 114 $sysinfo->plugin_version_getAll($h); 115 113 116 $report = $this->getSystemData($h); 114 117 … … 176 179 // plugins: folder, enabled, version, order 177 180 178 $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order FROM " . TABLE_PLUGINS . " ORDER BY plugin_order";181 $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order, plugin_latestversion FROM " . TABLE_PLUGINS . " ORDER BY plugin_order"; 179 182 $plugins = $h->db->get_results($h->db->prepare($sql)); 180 183 if ($plugins) { … … 183 186 $report['hotaru_plugins'][$plugin->plugin_folder]['version'] = $plugin->plugin_version; 184 187 $report['hotaru_plugins'][$plugin->plugin_folder]['order'] = $plugin->plugin_order; 188 $report['hotaru_plugins'][$plugin->plugin_folder]['plugin_latestversion'] = $plugin->plugin_latestversion; 185 189 } 186 190 } … … 317 321 foreach ($report['hotaru_plugins'] as $key => $value) { 318 322 $output .= $value['order'] . ". " . $key . " v." . $value['version'] . " "; 319 if ($value['enabled']) { $output .= "[enabled] \n"; } else { $output .= "[disabled] \n"; } 320 } 321 } 323 $output .= " (" . $value['plugin_latestversion'] .") "; 324 if ($value['enabled']) { $output .= "[enabled] \n"; } else { $output .= "[disabled] \n"; } 325 } 326 } 327 $output .= "\n(Number in brackets above denotes latest versions available at HotaruCMS.org)\n"; 322 328 323 329 $output .= "\n";
Note: See TracChangeset
for help on using the changeset viewer.