Commit c3f4b84e authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Fixed setting update time.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4199 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5b62f63d
......@@ -7,6 +7,7 @@
*/
package org.jivesoftware.wildfire.update;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.XMPPServer;
......@@ -65,7 +66,15 @@ public class PluginDownloadManager {
public boolean updatePluginsList() {
UpdateManager updateManager = XMPPServer.getInstance().getUpdateManager();
try {
// Todo: Unify update checking into one xml file. Have the update check set the last check property.
updateManager.checkForServerUpdate(true);
updateManager.checkForPluginsUpdates(true);
// Keep track of the last time we checked for updates
JiveGlobals.setProperty("update.lastCheck",
String.valueOf(System.currentTimeMillis()));
return true;
}
catch (Exception e) {
......
......@@ -45,12 +45,6 @@
}
});
String updateList = request.getParameter("autoupdate");
if(updateList != null){
updateManager.checkForPluginsUpdates(true);
}
if (downloadRequested) {
// Download and install new plugin
updateManager.downloadPlugin(url);
......
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