Test refresh

This commit is contained in:
Fred 2019-10-21 17:20:12 +02:00 committed by GitHub
parent 8555a07b9e
commit 4e1175adde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -643,6 +643,14 @@ class common {
$this->setData(['page',$tempData['page']]);
$this->setData(['module',$tempData['module']]);
$this->setData(['theme',$tempTheme['theme']]);
// Nettoyage du fichier de thème pour forcer une régénération
if (!file_exists(self::DATA_DIR . '/theme.css')) { // On ne sait jamais
unlink (self::DATA_DIR . '/theme.css');
}
// Forcer un refresh
//http_response_code(301);
//header('Location:' . helper::baseUrl();
}
/**