diff --git a/design/privateheader.php b/design/privateheader.php
index 809fd5bd..f1d2fd7f 100644
--- a/design/privateheader.php
+++ b/design/privateheader.php
@@ -98,8 +98,19 @@
?>
- } else { ?>
-
+
+ } else {
+ $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
+ if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
+ && $StyleURLInfo['query'].$StyleURLInfo['fragment'] == ''
+ && in_array($StyleURLInfo['host'], array(NONSSL_SITE_URL, SSL_SITE_URL))
+ && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
+ $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
+ } else {
+ $StyleURL = G::$LoggedUser['StyleURL'];
+ }
+?>
+
}
if (!empty(G::$LoggedUser['UseOpenDyslexic'])) {