adressage relatif et un md5 en moins

This commit is contained in:
Deltacms 2023-02-02 18:25:42 +01:00
parent 3bb2edc8d7
commit 638ef1033b
1 changed files with 5 additions and 5 deletions

View File

@ -2171,7 +2171,7 @@ class common {
$vendorFiles = json_decode(file_get_contents($vendorPath . 'inc.json'));
foreach($vendorFiles as $vendorFile) {
if( pathinfo($vendorFile, PATHINFO_EXTENSION) === 'js') {
echo '<script src="' . helper::baseUrl(false) . $vendorPath . $vendorFile . '"></script>';
echo '<script src="' . $vendorPath . $vendorFile . '"></script>';
}
}
}
@ -2192,9 +2192,9 @@ class common {
if( pathinfo($vendorFile, PATHINFO_EXTENSION) === 'css') {
// Force le rechargement lors d'une mise à jour du jeu d'icônes
$reload = $vendorPath === 'core/vendor/zwiico/'
? '?' . md5_file('core/vendor/zwiico/css/zwiico-codes.css')
? '?' . time()
: '';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . $vendorPath . $vendorFile . $reload . '">';
echo '<link rel="stylesheet" href="' . $vendorPath . $vendorFile . $reload . '">';
}
}
}
@ -2213,7 +2213,7 @@ class common {
$vendorFiles = json_decode(file_get_contents($vendorPath . 'inc.json'));
foreach($vendorFiles as $vendorFile) {
if(pathinfo($vendorFile, PATHINFO_EXTENSION) === 'css') {
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . $vendorPath . $vendorFile . '">';
echo '<link rel="stylesheet" href="' . $vendorPath . $vendorFile . '">';
}
}
}
@ -2231,7 +2231,7 @@ class common {
$vendorFiles = json_decode(file_get_contents($vendorPath . 'inc.json'));
foreach($vendorFiles as $vendorFile) {
if(pathinfo($vendorFile, PATHINFO_EXTENSION) === 'js') {
echo '<script src="' . helper::baseUrl(false) . $vendorPath . $vendorFile . '"></script>';
echo '<script src="' . $vendorPath . $vendorFile . '"></script>';
}
}
}