MAPG-180 don't parse REVISION in view linking time

This commit is contained in:
Bence Pőcze 2020-06-27 13:20:11 +02:00
parent 6098b7bb8d
commit 2f14e1f4c3
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -144,7 +144,7 @@ class Linker
$output['code'] = file_get_contents(ROOT . '/public/static/' . $asset); $output['code'] = file_get_contents(ROOT . '/public/static/' . $asset);
} else { } else {
if (!preg_match('/^http(s)?/', $asset)) { if (!preg_match('/^http(s)?/', $asset)) {
$output['file'] = $_ENV['STATIC_ROOT'] . '/' . $asset . '?rev=' . REVISION; $output['file'] = $_ENV['STATIC_ROOT'] . '/' . $asset . '?rev=<?= REVISION ?>';
} else { } else {
$output['file'] = $asset; $output['file'] = $asset;
} }