Skip to content

Commit

Permalink
Drop duplicate doc_to_show parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanssens committed Oct 19, 2022
1 parent b6a1eb3 commit ff2db2e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions viewdoc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff2db2e

Please sign in to comment.