From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 05:52:10 +0000 (+0000) Subject: Avoid "conditional and" for fixing $depth X-Git-Tag: debian/2.1.2-2~100 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=087563c6a68a0562201de0ce6f36ee512ad8abf1;p=pkg%2Fblosxom.git Avoid "conditional and" for fixing $depth --- 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 = '';