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