From ff3ed99f17e6204cc4f6331830c53a084f385d9a Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 23 Aug 2006 23:11:49 +0200 Subject: Added bz2 compression support for Attic darcs-hash:20060823211149-9c1ae-569f295c33dc798a429a373f48cb09122334ea29.gz --- inc/common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/common.php') 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)) { -- cgit v1.2.3