diff options
author | marcel <marcel@rucksackreinigung.de> | 2006-08-23 23:11:49 +0200 |
---|---|---|
committer | marcel <marcel@rucksackreinigung.de> | 2006-08-23 23:11:49 +0200 |
commit | ff3ed99f17e6204cc4f6331830c53a084f385d9a (patch) | |
tree | 270560469411e93e397f0d64dfafe1a09a7d61e4 /inc/common.php | |
parent | 95a12943a8ef44b4c16f72c9c1c7f5e28b1d60c4 (diff) | |
download | rpg-ff3ed99f17e6204cc4f6331830c53a084f385d9a.tar.gz rpg-ff3ed99f17e6204cc4f6331830c53a084f385d9a.tar.bz2 |
Added bz2 compression support for Attic
darcs-hash:20060823211149-9c1ae-569f295c33dc798a429a373f48cb09122334ea29.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 609e0b077..bed5105fb 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1185,7 +1185,9 @@ function getRevisions($id){ $id = noNS($id); $id = utf8_encodeFN($id); $len = strlen($id); - $xlen = ($conf['usegzip']) ? -7 : -4; // length of extension (.txt.gz or .txt) + $xlen = 10; // length of timestamp, strlen(time()) would be more correct, + // but i don't expect dokuwiki still running in 287 years ;) + // so this will perform better $revs = array(); if (is_dir($revd) && $dh = opendir($revd)) { |