]> git.deb.at Git - pkg/blosxom.git/commitdiff
Fixed bug 1368882
authorBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sun, 18 Dec 2005 18:52:23 +0000 (18:52 +0000)
committerBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sun, 18 Dec 2005 18:52:23 +0000 (18:52 +0000)
When statically rendering single story page, this sets the path_info fields the same way as in dynamic rendering.

blosxom.cgi

index 43afa7df017ec0d4152adf1d6d2156e7a68ec7b0..920a7835db7c4e215d4046adbae2d835c808d02c 100755 (executable)
@@ -247,7 +247,9 @@ if (!$ENV{GATEWAY_INTERFACE} and param('-password') and $static_password and par
         if ($indexes{$path} == 1) {
           # category
           $path_info = $p;
-          print $fh_w &generate('static', $p, '', $flavour, $content_type);
+          # individual story
+          $path_info =~ s!\.$file_extension$!\.$flavour!;
+          print $fh_w &generate('static', $path_info, '', $flavour, $content_type);
         } else {
           # date
           local ($path_info_yr,$path_info_mo,$path_info_da, $path_info) =