I tried it, and yes, the fix works
Globals in template 'test' are displayed now.
Thanks very much!
I shortened the code a bit, but the main idea is the same.
Fix for GLOBAL and LANGUAGE file load problem, when it loads from default template set, instead of the URL input of the 't' parameter.
1) In Home.pm find the
_load_global
and
_language
methods and replace the following codes in both:
replace
with
my $template_set = (defined $self->{cgi}->{t}) ? $self->{cgi}->{t} : ($self->{cfg}->{template} || 'default'); # bugfix
This solves the bug.
GT staff may include the bugfix into the CVS...
Thanks again for the fix, Oliver!
Webmaster33
Globals in template 'test' are displayed now.
Thanks very much!
I shortened the code a bit, but the main idea is the same.
Fix for GLOBAL and LANGUAGE file load problem, when it loads from default template set, instead of the URL input of the 't' parameter.
1) In Home.pm find the
_load_global
and
_language
methods and replace the following codes in both:
replace
Code:
my $template_set = $self->{cfg}->{template} || 'default';with
Code:
#my $template_set = $self->{cfg}->{template} || 'default'; # original code my $template_set = (defined $self->{cgi}->{t}) ? $self->{cgi}->{t} : ($self->{cfg}->{template} || 'default'); # bugfix
This solves the bug.
GT staff may include the bugfix into the CVS...
Thanks again for the fix, Oliver!
Webmaster33