From 5b28c95408ac219fa5abf790eda7c937542d4e7d Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 27 Feb 2017 19:32:31 +0000 Subject: [PATCH] cleanup for simplified backlinking svn path=/trunk/; revision=177 --- actions/multitag.sh | 10 +++------- templates/browse.html.sh | 4 ---- templates/list.html.sh | 6 +----- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/actions/multitag.sh b/actions/multitag.sh index 3c9848e..36f3966 100755 --- a/actions/multitag.sh +++ b/actions/multitag.sh @@ -1,5 +1,5 @@ #!/bin/zsh -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -16,10 +16,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0 If not, see . -filter="${_POST[f]}" -search="${_POST[s]}" -order=$(validate "${_POST[o]}" 'Name|Date|Length' Name) -page=$(validate "${_POST[pn]}" '[0-9]+' 1) +backlink="${_POST[page]}" addtag(){ meta="$1" @@ -64,5 +61,4 @@ done rm "${_DATA}"/cache/\?* 2>/dev/null [ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist_set "${_DATA}"/cache/taglist_filter 2>/dev/null -#redirect "?o=$order&s=$search&f=$filter&pn=$page" -redirect "${_POST[page]}" +redirect "$backlink" diff --git a/templates/browse.html.sh b/templates/browse.html.sh index eae9ce9..7f28f83 100755 --- a/templates/browse.html.sh +++ b/templates/browse.html.sh @@ -48,10 +48,6 @@ cat < - - - -
    EOF diff --git a/templates/list.html.sh b/templates/list.html.sh index 28ce6c5..144ad0e 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -48,10 +48,6 @@ cat < - - - -
      EOF -- 2.39.2