From deec99c353e6c74bf5be1e03100f4b88963561fb Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 17 Nov 2013 23:32:00 +0100 Subject: [PATCH] Delaying the setting of @IndexOptions. This change was suggested by toomas on the wiki because the %Translations hash was not set at the time that @IndexOptions was set. It is now set in InitVariables. --- wiki.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $@;