From: David ‘Bombe’ Roden Date: Sat, 17 Mar 2012 12:08:53 +0000 (+0100) Subject: Use last insert edition for redirect. X-Git-Tag: 0.10-rc1~31 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a7969e1f99d3bf2199bf9da30913fc815f15d6ca;p=jSite.git Use last insert edition for redirect. --- diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index 10f3bf4..9471175 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -283,7 +283,7 @@ public class ProjectInserter implements FileScannerListener, Runnable { /* check if file was modified. */ if (file.getHash().equals(fileOption.getLastInsertHash())) { /* only insert a redirect. */ - return new RedirectFileEntry(filename, fileOption.getMimeType(), "SSK@" + project.getRequestURI() + "/" + project.getPath() + "-" + project.getEdition() + "/" + filename); + return new RedirectFileEntry(filename, fileOption.getMimeType(), "SSK@" + project.getRequestURI() + "/" + project.getPath() + "-" + fileOption.getLastInsertEdition() + "/" + filename); } fileOption.setCurrentHash(file.getHash()); try {