Minimal changes
This commit is contained in:
parent
8ecaa88461
commit
7359dcb69a
|
@ -9,7 +9,7 @@ class Update extends Vn\Lib\Method
|
||||||
|
|
||||||
$tmpDir = '/tmp/floricode';
|
$tmpDir = '/tmp/floricode';
|
||||||
|
|
||||||
// Establece una conexión FTP
|
// Establece una conexi<EFBFBD>n FTP
|
||||||
|
|
||||||
$ftpConf = $db->getRow ('SELECT host, user, password FROM ftp_config');
|
$ftpConf = $db->getRow ('SELECT host, user, password FROM ftp_config');
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class Update extends Vn\Lib\Method
|
||||||
if (!$fileName)
|
if (!$fileName)
|
||||||
throw new Exception ("Import file for table $table does not exist");
|
throw new Exception ("Import file for table $table does not exist");
|
||||||
|
|
||||||
// Si los datos están actualizados omite la tabla
|
// Si los datos están actualizados omite la tabla
|
||||||
|
|
||||||
$lastUpdated = substr ($fileName, -10, 6);
|
$lastUpdated = substr ($fileName, -10, 6);
|
||||||
$lastUpdated = DateTime::createFromFormat ('dmy', $lastUpdated);
|
$lastUpdated = DateTime::createFromFormat ('dmy', $lastUpdated);
|
||||||
|
|
Loading…
Reference in New Issue