From c1a6788ee729bff42d78ad53674da85d1642ab1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 18 Sep 2012 22:57:49 +0200 Subject: [PATCH] let rev 0 be same as no rev --- doku.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doku.php b/doku.php index b8af9a2..4d9309d 100755 --- a/doku.php +++ b/doku.php @@ -30,7 +30,7 @@ case 'cleanID': echo cleanID($argv[2]); break; case 'wikiFN': - if ($argc > 3) { + if ($argc > 3 && $argv[3]) { echo strip_dir($conf['olddir'], wikiFN($argv[2], $argv[3])); } else { echo strip_dir($conf['datadir'], wikiFN($argv[2]));