gnucash-htdocs master: Drop duplicate doc_to_show parsing
Geert Janssens
gjanssens at code.gnucash.org
Wed Oct 19 10:10:57 EDT 2022
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/ff2db2e9 (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/b6a1eb39 (commit)
commit ff2db2e9982a2a5cb278a595c11e217b55a0e10d
Author: Geert Janssens <geert at kobaltwit.be>
Date: Wed Oct 19 16:06:57 2022 +0200
Drop duplicate doc_to_show parsing
diff --git a/viewdoc.phtml b/viewdoc.phtml
index 1e9636d..e0d4690 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -34,23 +34,6 @@ if (in_array($get_lang, $doc_languages, true)) {
$showlang = $locale;
}
-
-# Parse requested document
-$doc_to_show = filter_input(INPUT_GET, 'doc', FILTER_SANITIZE_STRING);
-if ($doc_to_show) {
- switch ($doc_to_show) {
- case "help":
- $showdoc = $helpdoc;
- break;
- case "guide":
- $showdoc = $tcdoc;
- break;
- default: /* unknown document requested, will present guide by default */
- $req_doc_ok = false;
- break;
- }
-}
-
# Parse requested version
$rev_to_show = filter_input(INPUT_GET, 'rev', FILTER_SANITIZE_STRING);
if ($rev_to_show) {
Summary of changes:
viewdoc.phtml | 17 -----------------
1 file changed, 17 deletions(-)
More information about the gnucash-changes
mailing list