--- /tmp/photopub/cgi-bin/range.pl Sun Jan 20 19:33:30 2002 +++ range.pl Wed Feb 6 23:15:51 2002 @@ -50,6 +50,10 @@ $template=~s/\$$name/$val/ieg; } +# Export $styleroot, the path of the stylesheet, into the template +my $styleroot = substr( $style, 0, rindex( $style, '/' ) ); +$template=~s/\$styleroot/$styleroot/ieg; + updateagefromfiles($0,$rangetemplate); my @photos=picrange($range);