Skip to content
Snippets Groups Projects
Commit af968c19 authored by Frédéric Carretero's avatar Frédéric Carretero
Browse files

Correction dans la classe "File_downloader"

parent 520405b1
Branches
Tags
No related merge requests found
...@@ -128,6 +128,9 @@ class File_downloader extends Vitis { ...@@ -128,6 +128,9 @@ class File_downloader extends Vitis {
} else { } else {
// modification de $sPath pour aller chercher le fichier dans ws_data // modification de $sPath pour aller chercher le fichier dans ws_data
if (strpos($this->aValues["key"], 'ws_data') === 0)
$sPath = str_replace('ws_data', $this->aProperties['ws_data_dir'], $this->aValues["key"]);
else
$sPath = $this->aProperties["ws_data_dir"] . "/" . $this->aValues["key"]; $sPath = $this->aProperties["ws_data_dir"] . "/" . $this->aValues["key"];
// check eTag // check eTag
$sEtag = sha1(file_get_contents($sPath), false); $sEtag = sha1(file_get_contents($sPath), false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment