Permalink
Browse files

Bugfix to make index.shtml write correctly (on some machines?), and f…

…orce

space into index boxes (the right column).
  • Loading branch information...
1 parent e7110b6 commit c6e61b1cba8c1147e3deb1f45e5da3eeb7ccf306 @jamiemccarthy jamiemccarthy committed Feb 19, 2003
Showing with 4 additions and 2 deletions.
  1. +3 −2 Slash/Utility/Anchor/Anchor.pm
  2. +1 −0 themes/slashcode/templates/index;index;default
@@ -147,6 +147,9 @@ sub header {
slashDisplay('html-header', { title => $data->{title} }, { Nocomm => 1, Return => $options->{Return}, Page => $options->{Page} })
unless $options->{noheader};
+ $user->{state}{mt}{curcol} = 0;
+ $user->{state}{mt}{cols} = [ ];
+
# ssi = 1 IS NOT THE SAME as ssi = 'yes'
# ...which is silly. - Jamie 2002/06/26
if ($form->{ssi} && $form->{ssi} eq 'yes') {
@@ -165,8 +168,6 @@ sub header {
#print STDERR "header(options->page) defined: '$options->{page}' for title '$data->{title}'\n" if defined($options->{page});
$data->{tab_selected} = $options->{tab_selected} if $options->{tab_selected};
- $user->{state}{mt}{curcol} = 0;
- $user->{state}{mt}{cols} = [ ];
if ($options->{admin} && $user->{is_admin}) {
$user->{state}{adminheader} = 1;
$display = slashDisplay('header-admin', $data, { Return => $options->{Return}, Page => $options->{Page} });
@@ -72,6 +72,7 @@ message_count.read %] old message[% message_count.read == 1 ? "" : "s";
</TD>
[% PROCESS maintable_td %]&nbsp;</TD>
[% PROCESS maintable_td width=(constants.fancyboxwidth + 10) align="CENTER" valign="TOP" %]
+<IMG SRC="[% constants.imagedir %]/pix.gif" WIDTH="[% constants.fancyboxwidth + 10 %]" HEIGHT="1" BORDER="0">
[% boxes || "&nbsp;" %]
[% END %]

0 comments on commit c6e61b1

Please sign in to comment.