test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 11:13:46 +01:00
parent 988b40e335
commit c5aa686997

@ -6,7 +6,6 @@ function inlineLocalStylesFromHref($inputString) {
$outputString = preg_replace_callback($pattern, function($match) { $outputString = preg_replace_callback($pattern, function($match) {
$href = $match[1]; $href = $match[1];
$cssFilePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $href; $cssFilePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $href;
echo $cssFilePath;
$cssContent = file_get_contents($cssFilePath); $cssContent = file_get_contents($cssFilePath);
$cssDir = dirname($cssFilePath); $cssDir = dirname($cssFilePath);