Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
c84a9ae6
Commit
c84a9ae6
authored
Jun 18, 2019
by
Laurent Lécluse
Browse files
Correction de bug lié au refactoring...
parent
58bea091
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/src/OseAdmin.php
View file @
c84a9ae6
...
...
@@ -128,9 +128,9 @@ class OseAdmin
public
function
currentVersion
(
string
$osedir
):
string
public
function
currentVersion
():
string
{
$vf
=
$this
->
get
VersionFile
(
$o
se
d
ir
)
;
$vf
=
$this
->
get
O
se
D
ir
()
.
'VERSION'
;
if
(
!
file_exists
(
$vf
))
{
return
'inconnue'
;
}
...
...
@@ -142,16 +142,8 @@ class OseAdmin
public
function
writeVersion
(
string
$version
)
{
$vf
=
$this
->
getVersionFile
();
$this
->
version
=
$version
;
file_put_contents
(
$vf
,
$version
);
}
private
function
getVersionFile
():
string
{
return
$this
->
getOseDir
()
.
'VERSION'
;
file_put_contents
(
$this
->
getOseDir
()
.
'VERSION'
,
$version
);
}
...
...
Write
Preview
Supports
Markdown
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