From 9fa5e550937951db5d77914c16f0dd9f3dbcfa44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 11:08:40 +0100 Subject: [PATCH] test inlining --- lib/inliner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inliner.php b/lib/inliner.php index 28bd933..143cee6 100644 --- a/lib/inliner.php +++ b/lib/inliner.php @@ -6,6 +6,7 @@ function inlineLocalStylesFromHref($inputString) { $outputString = preg_replace_callback($pattern, function($match) { $href = $match[1]; $cssFilePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $href; + echo $cssFilePath; $cssContent = file_get_contents($cssFilePath); $cssDir = dirname($cssFilePath); @@ -30,7 +31,6 @@ function inlineScriptFromSrc($inputString) { $outputString = preg_replace_callback($pattern, function($match) { $src = $match[1]; - echo $_SERVER['DOCUMENT_ROOT'] . '/' . $src; $jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src); // Minify the JavaScript content