Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: [olivers] BUG: Globals are loaded from default template set, not from t=test template set: Edit Log

Here is the list of edits for this post
Re: [olivers] BUG: Globals are loaded from default template set, not from t=test template set
I tried it, and yes, the fix works Smile
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

Last edited by:

webmaster33: Nov 28, 2007, 4:02 PM

Edit Log: