From 5d205904205d9f1e6710bfa08f6223aac5fc47e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 22 Jan 2010 22:18:37 +0100 Subject: [PATCH] Fix change detection to include insert redirect attribute. --- src/de/todesbaum/jsite/application/FileOption.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/de/todesbaum/jsite/application/FileOption.java b/src/de/todesbaum/jsite/application/FileOption.java index dd3d208..9927c33 100644 --- a/src/de/todesbaum/jsite/application/FileOption.java +++ b/src/de/todesbaum/jsite/application/FileOption.java @@ -29,6 +29,9 @@ public class FileOption { /** The default for the insert state. */ private static final boolean DEFAULT_INSERT = true; + /** The default for the insert redirect state. */ + private static final boolean DEFAULT_INSERT_REDIRECT = true; + /** The default for the custom key. */ private static final String DEFAULT_CUSTOM_KEY = "CHK@"; @@ -76,6 +79,7 @@ public class FileOption { */ public FileOption(String defaultMimeType) { insert = DEFAULT_INSERT; + insertRedirect = DEFAULT_INSERT_REDIRECT; customKey = DEFAULT_CUSTOM_KEY; this.defaultMimeType = defaultMimeType; mimeType = defaultMimeType; @@ -311,6 +315,9 @@ public class FileOption { if (editionRange != DEFAULT_EDITION_RANGE) { return true; } + if (insertRedirect != DEFAULT_INSERT_REDIRECT) { + return true; + } return false; } -- 2.7.4