Skip to content

Commit

Permalink
Restore Openfire plugin snapshot downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Jan 30, 2024
1 parent f1f1146 commit 6ed394f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/webapp/projects/openfire/plugin-archive.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@
<td>Built at</td>
<td style="text-align: center;">Openfire Version</td>
</tr>
<% if (plugins.isEmpty()) { %>
<%
final List<PluginManager.Metadata> snapshots =
PluginManager.sortByVersionAndReleaseDate(
PluginManager.getSnapshots( pluginDir, pluginName ), 20
);
if (snapshots.isEmpty()) { %>
<tbody>
<tr>
<td colspan="6">No snapshots.</td>
Expand All @@ -230,7 +235,7 @@
<tbody>
<% DateFormat formatter = DateFormat.getDateTimeInstance( DateFormat.DEFAULT, DateFormat.DEFAULT );
for ( PluginManager.Metadata plugin : plugins )
for ( PluginManager.Metadata plugin : snapshots )
{
final String snapshotParam = plugin.snapshotQualifier == null ? "" : "?snapshot=" + URLEncoder.encode(plugin.snapshotQualifier, StandardCharsets.UTF_8.name());
try {
Expand Down

0 comments on commit 6ed394f

Please sign in to comment.