]> git.wh0rd.org - tt-rss.git/commitdiff
send_local_file: touch() sent files to reset their expiration cooldown
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 23 Aug 2018 10:43:31 +0000 (13:43 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 23 Aug 2018 10:43:31 +0000 (13:43 +0300)
include/functions.php

index f03ed3a91eedb6f00a2d8a43b06deb5396b67410..453f329b4bc3b3b2f47feb50dec95b8543d5cb1c 100755 (executable)
                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);