diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-05-22 00:19:40 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-05-22 00:19:40 -0700 |
commit | 015ae22a47a0ec2bcefabe66c0dcd74a8e398354 (patch) | |
tree | 0d9cfd75de801c9eadb000fce45104a49aef09f9 | |
parent | 5a9866e97863490816d932e98e8e170e49405d43 (diff) | |
parent | c07c5d9357d0e1796b24abac74d9628b41098242 (diff) | |
download | rpg-015ae22a47a0ec2bcefabe66c0dcd74a8e398354.tar.gz rpg-015ae22a47a0ec2bcefabe66c0dcd74a8e398354.tar.bz2 |
Merge pull request #102 from rsnitsch/master
Fixes messages.txt's modification timestamp not being updated.
-rw-r--r-- | inc/infoutils.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 2b8486906..ff752cd0f 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -25,11 +25,14 @@ function checkUpdateMessages(){ // check if new messages needs to be fetched if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.DOKU_SCRIPT)){ + dbglog("checkUpdatesMessages(): downloading messages.txt"); $http = new DokuHTTPClient(); $http->timeout = 8; $data = $http->get(DOKU_MESSAGEURL.$updateVersion); io_saveFile($cf,$data); + @touch($cf); }else{ + dbglog("checkUpdatesMessages(): messages.txt up to date"); $data = io_readFile($cf); } |