From: David ‘Bombe’ Roden Date: Fri, 22 Jan 2010 21:18:37 +0000 (+0100) Subject: Fix change detection to include insert redirect attribute. X-Git-Tag: 0.9~15 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5d205904205d9f1e6710bfa08f6223aac5fc47e6;p=jSite.git Fix change detection to include insert redirect attribute. --- 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; }