fix static file paths
This commit is contained in:
parent
db0e788a67
commit
343a858898
1 changed files with 8 additions and 5 deletions
|
@ -4,6 +4,8 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Shimmie2;
|
namespace Shimmie2;
|
||||||
|
|
||||||
|
require_once "core/urls.php";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A small number of PHP-sanity things (eg don't silently ignore errors) to
|
* 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
|
* 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
|
function die_nicely(string $title, string $body, int $code = 0): void
|
||||||
{
|
{
|
||||||
|
$data_href = get_base_href();
|
||||||
print("<!DOCTYPE html>
|
print("<!DOCTYPE html>
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<title>Shimmie</title>
|
<title>Shimmie</title>
|
||||||
<link rel=\"shortcut icon\" href=\"ext/static_files/static/favicon.ico\">
|
<link rel='shortcut icon' href='$data_href/ext/static_files/static/favicon.ico'>
|
||||||
<link rel=\"stylesheet\" href=\"ext/static_files/style.css\" type=\"text/css\">
|
<link rel='stylesheet' href='$data_href/ext/static_files/style.css' type='text/css'>
|
||||||
<link rel=\"stylesheet\" href=\"ext/static_files/installer.css\" type=\"text/css\">
|
<link rel='stylesheet' href='$data_href/ext/static_files/installer.css' type='text/css'>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id=\"installer\">
|
<div id='installer'>
|
||||||
<h1>Shimmie</h1>
|
<h1>Shimmie</h1>
|
||||||
<h3>$title</h3>
|
<h3>$title</h3>
|
||||||
<div class=\"container\">
|
<div class='container'>
|
||||||
$body
|
$body
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue