From 8e889de50bcbe909f8a52676102637844fde56a5 Mon Sep 17 00:00:00 2001 From: low012 Date: Tue, 25 Mar 2008 20:40:54 +0000 Subject: [PATCH] *) Added Lotus' patch (http://forum.yacy-websuche.de/viewtopic.php?t=979), user will be taken back to last opened page after making changes in Advanced Settings. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4601 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/SettingsAck_p.html | 2 +- htroot/SettingsAck_p.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.html index 9d571ea1d..880adae07 100644 --- a/htroot/SettingsAck_p.html +++ b/htroot/SettingsAck_p.html @@ -220,7 +220,7 @@ ::

Invalid maximum file size for ftp crawler: #[crawler.http.maxFileSize]#

#(/info)# -

You can now go back to the Settings page if you want to make more changes.

+

You can now go back to the Settings page if you want to make more changes.

#%env/templates/footer.template%# diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java index ef34338ca..2fbbf7a93 100644 --- a/htroot/SettingsAck_p.java +++ b/htroot/SettingsAck_p.java @@ -83,6 +83,10 @@ public class SettingsAck_p { // return variable that accumulates replacements serverObjects prop = new serverObjects(); + // get referer for backlink + String referer = (String) header.get(httpHeader.REFERER); + prop.put("referer", (referer == null) ? "Settings_p.html" : referer); + //if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString()); if (post == null) {