Commit 0565d9ca authored by Cerdic's avatar Cerdic

distinguer les fichiers que l'on regarde pour afficher la version du service dans l'interface

parent 818884b7
......@@ -26,12 +26,20 @@ function offline_services_last_version() {
if (file_exists($file_in_progress)) {
return '';
}
$fichiers = array(
_DIR_ETC . 'offline/urls_to_cache.txt',
_DIR_VAR . 'offline/install.js',
_DIR_VAR . 'offline/sw.js',
_DIR_VAR . 'offline/uninstall.js',
);
include_spip('inc/offline');
if (defined('_OFFLINE_DEBUG') and _OFFLINE_DEBUG) {
$fichiers = array(
_DIR_ETC . 'offline/urls_to_cache.txt',
);
}
else {
$fichiers = array(
_DIR_VAR . 'offline/install.js',
_DIR_VAR . 'offline/sw.js',
_DIR_VAR . 'offline/uninstall.js',
);
}
$t = null;
foreach ($fichiers as $f) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment