Commit 3110bf316c7416ddfc692e51e01865aa471cad6c
1 parent
fdeab55e
Modified comments in Archive Util
Showing
1 changed file
with
2 additions
and
3 deletions
lib/foldermanagement/compressionArchiveUtil.inc.php
| @@ -649,13 +649,12 @@ class DownloadQueue | @@ -649,13 +649,12 @@ class DownloadQueue | ||
| 649 | } | 649 | } |
| 650 | 650 | ||
| 651 | if (count($queue) && !PEAR::isError($res) && !PEAR::isError($result)) { | 651 | if (count($queue) && !PEAR::isError($res) && !PEAR::isError($result)) { |
| 652 | - // check for any errors and if none found then create the entry for the zip file which will be used by the notification code | ||
| 653 | // create the db entry | 652 | // create the db entry |
| 654 | self::addItem($code, self::getFolderId($code), -1, 'zip'); | 653 | self::addItem($code, self::getFolderId($code), -1, 'zip'); |
| 655 | // update the db entry with the appropriate status and message | 654 | // update the db entry with the appropriate status and message |
| 656 | $this->setItemStatus($code, 2, serialize(array($zip->getTmpPath(), $zip->getZipFileName())), true); | 655 | $this->setItemStatus($code, 2, serialize(array($zip->getTmpPath(), $zip->getZipFileName())), true); |
| 657 | - // Here was an attempt to allow the download notification to occur if the user left the page, which was using a session value (which didn't work properly) and then | ||
| 658 | - // we were trying a file, which was untested and in process when the file corruption occurred. Will continue this once the rest of the code is committed & safe. | 656 | + // write a file which will be checked if the user has not been logged out and back in |
| 657 | + // (in which case the required session value will not be set and this file acts as a trigger instead) | ||
| 659 | $config = KTConfig::getSingleton(); | 658 | $config = KTConfig::getSingleton(); |
| 660 | @touch($config->get('cache/cacheDirectory') . '/' . self::$notificationFile); | 659 | @touch($config->get('cache/cacheDirectory') . '/' . self::$notificationFile); |
| 661 | } | 660 | } |