Commit e4694696 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed logic to detect when available plugins were never checked. JM-965

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7053 b35dd754-fafc-0310-a699-88a17e54d16e
parent 763fc5c7
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager(); UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager();
List<AvailablePlugin> plugins = updateManager.getNotInstalledPlugins(); List<AvailablePlugin> plugins = updateManager.getNotInstalledPlugins();
String time = JiveGlobals.getProperty("update.lastCheck");
// Sort plugins alphabetically // Sort plugins alphabetically
Collections.sort(plugins, new Comparator<AvailablePlugin>() { Collections.sort(plugins, new Comparator<AvailablePlugin>() {
public int compare(AvailablePlugin o1, AvailablePlugin o2) { public int compare(AvailablePlugin o1, AvailablePlugin o2) {
...@@ -226,7 +227,7 @@ ...@@ -226,7 +227,7 @@
<p> <p>
<%if(plugins.size() == 0){ %> <%if(time == null){ %>
<div style="padding:10px;background:#FFEBB5;border:1px solid #DEB24A;width:75%;"> <div style="padding:10px;background:#FFEBB5;border:1px solid #DEB24A;width:75%;">
<fmt:message key="plugin.available.no.list" />&nbsp;<span id="reloaderID"><a href="javascript:updatePluginsList();"><fmt:message key="plugin.available.list" /></a></span> <fmt:message key="plugin.available.no.list" />&nbsp;<span id="reloaderID"><a href="javascript:updatePluginsList();"><fmt:message key="plugin.available.list" /></a></span>
</div> </div>
...@@ -514,10 +515,9 @@ ...@@ -514,10 +515,9 @@
</div> </div>
<br/> <br/>
<% <%
String time = JiveGlobals.getProperty("update.lastCheck");
if(time != null){ if(time != null){
Date date = new Date(Long.parseLong(time)); Date date = new Date(Long.parseLong(time));
time = JiveGlobals.formatDate(date); time = JiveGlobals.formatDate(date);
} }
%> %>
<p> <p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment