adressage relatif et un md5 en moins
This commit is contained in:
parent
3bb2edc8d7
commit
638ef1033b
|
@ -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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue