From 343a858898db8d4854893e553eb0864c4218a2dc Mon Sep 17 00:00:00 2001 From: Noz Date: Tue, 20 Feb 2024 22:01:01 -0500 Subject: [PATCH] fix static file paths --- core/sanitize_php.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/sanitize_php.php b/core/sanitize_php.php index 8fbacdea..e7c5fe8a 100644 --- a/core/sanitize_php.php +++ b/core/sanitize_php.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Shimmie2; +require_once "core/urls.php"; + /* * A small number of PHP-sanity things (eg don't silently ignore errors) to * be included right at the very start of index.php and tests/bootstrap.php @@ -11,19 +13,20 @@ namespace Shimmie2; function die_nicely(string $title, string $body, int $code = 0): void { + $data_href = get_base_href(); print(" Shimmie - - - + + + -
+

Shimmie

$title

-
+
$body