let rev 0 be same as no rev

This commit is contained in:
Elan Ruusamäe 2012-09-18 22:57:49 +02:00
parent a120d14f17
commit c1a6788ee7

View file

@ -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]));