From 18a0cc8d6ab67d62b083bf95410e604cc7ccec6b Mon Sep 17 00:00:00 2001 From: Sam White Date: Wed, 8 Dec 2021 15:53:56 +0000 Subject: [PATCH] Remove document link function. --- public_html/includes/html-templating.php | 2 +- public_html/includes/utils.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/public_html/includes/html-templating.php b/public_html/includes/html-templating.php index 0ec4808..88d2507 100644 --- a/public_html/includes/html-templating.php +++ b/public_html/includes/html-templating.php @@ -27,7 +27,7 @@ function javascript($name) { } function document_href($filename) { - return href(document_link($filename)); + return href("docs/$filename"); } // Link output helper functions. diff --git a/public_html/includes/utils.php b/public_html/includes/utils.php index 0ab5ab8..bb62dc0 100644 --- a/public_html/includes/utils.php +++ b/public_html/includes/utils.php @@ -35,12 +35,6 @@ function cache_control_suffix($path) { return "?v=$modified"; } -function document_link($filename) { - $rel_path = "docs/$filename"; - $suffix = cache_control_suffix($rel_path); - return $rel_path . $suffix; -} - function show_error_list($errors) { if (empty($errors)) return;?>