From 3c21c5e2f8119ce91149a51b209d1011d6a3ad32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 10:28:34 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/inliner.php b/lib/inliner.php index 64b7aa4..9180fd5 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -8,6 +8,8 @@ function inlineLocalStylesFromHref($inputString) { // Extract the href attribute value $href = isset($match[1]) ? $match[1] : $match[2]; + $fname = $_SERVER['DOCUMENT_ROOT'] . '/' . $href; + echo "from $fname"; // Get the content of the local CSS file $cssContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $href);