mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Fix: add cache-busting to theme CSS @import
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<?php
|
||||
require_once '../../includes/functions.php';
|
||||
$color = getColorOpt();
|
||||
$allCss = 'all.css';
|
||||
?>
|
||||
/*
|
||||
Theme Name: RaspAP default
|
||||
@@ -11,7 +12,7 @@ Description: Default theme for RaspAP
|
||||
License: GNU General Public License v3.0
|
||||
*/
|
||||
|
||||
@import url('all.css');
|
||||
@import url('<?= $allCss ?>?v=<?= filemtime($allCss); ?>');
|
||||
|
||||
:root {
|
||||
--raspap-theme-color: <?php echo htmlspecialchars($color, ENT_QUOTES, 'UTF-8'); ?>;
|
||||
|
||||
Reference in New Issue
Block a user