X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=1adc8ef49d404072c39ac1e7ce6554dbef5c3646;hp=0182001a89cb435569319d82ee6076fb8eb7e57d;hb=087563c6a68a0562201de0ce6f36ee512ad8abf1;hpb=27f7b38a770074a5906af933a9e41a6dbe7ce8a9 diff --git a/blosxom.cgi b/blosxom.cgi index 0182001..1adc8ef 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -137,7 +137,7 @@ $url =~ s!/$!!; $datadir =~ s!/$!!; $plugin_dir =~ s!/$!!; $static_dir =~ s!/$!!; # Fix depth to take into account datadir's path -$depth and $depth += ($datadir =~ tr[/][]) - 1; +$depth += ($datadir =~ tr[/][]) - 1 if $depth; # Global variable to be used in head/foot.{flavour} templates $path_info = '';