update folder timestamp on uploaded files (fixme - we need to recurse back to the storage root but that is for another day)
This commit is contained in:
parent
14383a4c4a
commit
662316e687
@ -948,6 +948,16 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update the folder timestamp @todo recurse to the storage root folder
|
||||||
|
|
||||||
|
if($folder_hash) {
|
||||||
|
q("UPDATE attach set edited = '%s' where hash = '%s' and uid = %d and is_dir = 1",
|
||||||
|
dbesc($edited),
|
||||||
|
dbesc($folder_hash),
|
||||||
|
intval($channel_id)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Caution: This re-uses $sql_options set further above
|
// Caution: This re-uses $sql_options set further above
|
||||||
|
|
||||||
$r = q("select * from attach where uid = %d and hash = '%s' $sql_options limit 1",
|
$r = q("select * from attach where uid = %d and hash = '%s' $sql_options limit 1",
|
||||||
|
Reference in New Issue
Block a user