[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16144]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16144] |
Date: |
Wed, 4 Jan 2017 22:29:46 +0000 (UTC) |
Revision: 16144
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16144
Author: nelson224
Date: 2017-01-04 22:29:46 +0000 (Wed, 04 Jan 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
Modified:
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
===================================================================
---
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
2017-01-04 18:37:24 UTC (rev 16143)
+++
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
2017-01-04 22:29:46 UTC (rev 16144)
@@ -141,14 +141,14 @@
}
unlink($file_data['path_file']);
$count_new_files++;
- }
- $result =
$this->_save_file_relation($component['id'], $component['location_id'],
$file_id);
- if (!$result)
- {
- $message['error'][] =
array('msg' => "failed to save relation. File: '{$file}'");
- } else {
- $count_new_relations++;
+ $result =
$this->_save_file_relation($component['id'], $component['location_id'],
$file_id);
+ if (!$result)
+ {
+ $message['error'][] =
array('msg' => "failed to save relation. File: '{$file}'");
+ } else {
+ $count_new_relations++;
+ }
}
$this->db->Exception_On_Error = false;
@@ -701,7 +701,12 @@
if (count($this->paths_from_file[$val_md5sum]))
{
- $paths =
array_values(array_unique($this->paths_from_file[$val_md5sum]));
+ $paths = array();
+ $paths_values =
array_values(array_unique($this->paths_from_file[$val_md5sum]));
+ foreach ($paths_values as $item) {
+ $path = substr(strstr($item,
$this->fakebase), strlen($this->fakebase));
+ $paths[] = ($path) ? $path : '/';
+ }
} else {
$paths = array();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16144],
nelson . guerra <=