Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
offline
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open Source
offline
Commits
0565d9ca
Commit
0565d9ca
authored
Dec 05, 2018
by
Cerdic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distinguer les fichiers que l'on regarde pour afficher la version du service dans l'interface
parent
818884b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
offline_fonctions.php
offline_fonctions.php
+14
-6
No files found.
offline_fonctions.php
View file @
0565d9ca
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment