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 43afa7d..920a783 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) =