fix static file paths

This commit is contained in:
Noz 2024-02-20 22:01:01 -05:00 committed by Shish
parent db0e788a67
commit 343a858898

View file

@ -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("<!DOCTYPE html>
<html lang='en'>
<head>
<title>Shimmie</title>
<link rel=\"shortcut icon\" href=\"ext/static_files/static/favicon.ico\">
<link rel=\"stylesheet\" href=\"ext/static_files/style.css\" type=\"text/css\">
<link rel=\"stylesheet\" href=\"ext/static_files/installer.css\" type=\"text/css\">
<link rel='shortcut icon' href='$data_href/ext/static_files/static/favicon.ico'>
<link rel='stylesheet' href='$data_href/ext/static_files/style.css' type='text/css'>
<link rel='stylesheet' href='$data_href/ext/static_files/installer.css' type='text/css'>
</head>
<body>
<div id=\"installer\">
<div id='installer'>
<h1>Shimmie</h1>
<h3>$title</h3>
<div class=\"container\">
<div class='container'>
$body
</div>
</div>