Changeset 2247 for branches

Show
Ignore:
Timestamp:
11/26/10 13:14:12 (18 months ago)
Author:
nick_ramsay
Message:

[1.5] Removed latest plugin version lines.

Location:
branches/1.5/libs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/PluginManagement.php

    r2240 r2247  
    6767                                $p['status'] = ($plugin_row->plugin_enabled) ? 'active' : 'inactive'; 
    6868                                $p['version'] = $plugin_row->plugin_version; 
    69                                 $p['latestversion'] = $plugin_row->plugin_latestversion; 
    7069                                $p['install'] = "installed"; 
    7170                                $p['location'] = "database"; 
  • branches/1.5/libs/SystemInfo.php

    r2241 r2247  
    103103 
    104104                // plugins: folder, enabled, version, order 
    105                 $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order, plugin_latestversion FROM ".TABLE_PLUGINS." ORDER BY plugin_order"; 
     105                $sql = "SELECT plugin_folder, plugin_enabled, plugin_version, plugin_order FROM ".TABLE_PLUGINS." ORDER BY plugin_order"; 
    106106                $plugins = $h->db->get_results($h->db->prepare($sql)); 
    107107                if ($plugins) { 
     
    110110                                $report['hotaru_plugins'][$plugin->plugin_folder]['version'] = $plugin->plugin_version; 
    111111                                $report['hotaru_plugins'][$plugin->plugin_folder]['order'] = $plugin->plugin_order; 
    112                                 $report['hotaru_plugins'][$plugin->plugin_folder]['plugin_latestversion'] = $plugin->plugin_latestversion; 
    113112                        } 
    114113                } 
     
    237236                $output[] = 'Plugins:'; 
    238237                $output[] = '----------------------------------------------------------------------------------------------------'; 
    239                 $output[] = '(When there is a number in parentheses after the version number, there are latest versions available at HotaruCMS.org)'; 
     238 
    240239                if (isset($report['hotaru_plugins'])) { 
    241240                        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']; 
    243242                                $output[] = sprintf("%2d. [%s] %-20s %s", $value['order'], (($value['enabled'])?'+':'-'), $key, $version ); 
    244243                        }