diff options
author | Andrew Dolgov <[email protected]> | 2018-08-23 13:43:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-08-23 13:43:31 +0300 |
commit | f3068c6397aee3533f8a3f8b862281bea5b04278 (patch) | |
tree | ceb05e36daeb6534017d687eb6789854bd327c62 | |
parent | 54727f9534f8b17b57d87577ed1ec0e8be8be0f3 (diff) |
send_local_file: touch() sent files to reset their expiration cooldown
-rwxr-xr-x | include/functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index f03ed3a91..453f329b4 100755 --- a/include/functions.php +++ b/include/functions.php @@ -2601,6 +2601,9 @@ should be loaded systemwide in config.php */ function send_local_file($filename) { if (file_exists($filename)) { + + if (is_writable($filename)) touch($filename); + $tmppluginhost = new PluginHost(); $tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM); |