diff --git a/wiki.pl b/wiki.pl index c4183ad8..71f8acf9 100755 --- a/wiki.pl +++ b/wiki.pl @@ -159,7 +159,7 @@ $DocumentHeader = qq(\n) . qq(); # Checkboxes at the end of the index. -@IndexOptions = (['pages', T('Include normal pages'), 1, \&AllPagesList]); +@IndexOptions = (); # Display short comments below the GotoBar for special days # Example: %SpecialDays = ('1-1' => 'New Year', '1-2' => 'Next Day'); %SpecialDays = (); @@ -306,6 +306,7 @@ sub InitVariables { # Init global session variables for mod_perl! @MyRules = sort {$RuleOrder{$a} <=> $RuleOrder{$b}} @MyRules; # default is 0 ReportError(Ts('Cannot create %s', $DataDir) . ": $!", '500 INTERNAL SERVER ERROR') unless -d $DataDir; + @IndexOptions = (['pages', T('Include normal pages'), 1, \&AllPagesList]); foreach my $sub (@MyInitVariables) { my $result = &$sub; $Message .= $q->p($@) if $@;