From d596dccd4790f5a3878b820355f223945906a177 Mon Sep 17 00:00:00 2001 From: Michel Bardelmeijer Date: Mon, 18 Mar 2024 13:15:43 +0100 Subject: [PATCH] Move error templates to 'dist/errors' to support Laravel 11 --- build.php | 2 +- dist/{ => errors}/419.html | 0 dist/{ => errors}/500.html | 0 dist/{ => errors}/501.html | 0 dist/{ => errors}/502.html | 0 dist/{ => errors}/503.html | 0 dist/{ => errors}/504.html | 0 dist/{ => errors}/505.html | 0 symlink.php | 2 +- 9 files changed, 2 insertions(+), 2 deletions(-) rename dist/{ => errors}/419.html (100%) rename dist/{ => errors}/500.html (100%) rename dist/{ => errors}/501.html (100%) rename dist/{ => errors}/502.html (100%) rename dist/{ => errors}/503.html (100%) rename dist/{ => errors}/504.html (100%) rename dist/{ => errors}/505.html (100%) diff --git a/build.php b/build.php index 5e8715a..3a21cb8 100644 --- a/build.php +++ b/build.php @@ -13,5 +13,5 @@ foreach ($codes as $code) { $rendered = $twig->render('codes/' . $code . '.twig', ['code' => $code]); - file_put_contents(__DIR__ . '/dist/' . $code . '.html', $rendered); + file_put_contents(__DIR__ . '/dist/errors/' . $code . '.html', $rendered); } \ No newline at end of file diff --git a/dist/419.html b/dist/errors/419.html similarity index 100% rename from dist/419.html rename to dist/errors/419.html diff --git a/dist/500.html b/dist/errors/500.html similarity index 100% rename from dist/500.html rename to dist/errors/500.html diff --git a/dist/501.html b/dist/errors/501.html similarity index 100% rename from dist/501.html rename to dist/errors/501.html diff --git a/dist/502.html b/dist/errors/502.html similarity index 100% rename from dist/502.html rename to dist/errors/502.html diff --git a/dist/503.html b/dist/errors/503.html similarity index 100% rename from dist/503.html rename to dist/errors/503.html diff --git a/dist/504.html b/dist/errors/504.html similarity index 100% rename from dist/504.html rename to dist/errors/504.html diff --git a/dist/505.html b/dist/errors/505.html similarity index 100% rename from dist/505.html rename to dist/errors/505.html diff --git a/symlink.php b/symlink.php index 43de68a..5615124 100644 --- a/symlink.php +++ b/symlink.php @@ -5,5 +5,5 @@ foreach ($codes as $code) { exec('chown www-data: ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html')); - exec('ln -s ' . escapeshellarg(__DIR__ . '/dist/' . $code . '.html') . ' ' . escapeshellarg('../custom_' . $code . '.html')); + exec('ln -s ' . escapeshellarg(__DIR__ . '/dist/errors/' . $code . '.html') . ' ' . escapeshellarg('../custom_' . $code . '.html')); } \ No newline at end of file