Lines 163-182
sub utf8_hashref {
Link Here
|
163 |
utf8::encode($hashref->{$key}) if utf8::is_utf8($hashref->{$key}); |
163 |
utf8::encode($hashref->{$key}) if utf8::is_utf8($hashref->{$key}); |
164 |
} |
164 |
} |
165 |
} |
165 |
} |
166 |
|
|
|
167 |
|
168 |
# FIXME - this is a horrible hack to cache |
169 |
# the current known-good language, temporarily |
170 |
# put in place to resolve bug 4403. It is |
171 |
# used only by C4::XSLT::XSLTParse4Display; |
172 |
# the language is set via the usual call |
173 |
# to themelanguage. |
174 |
my $_current_language = 'en'; |
175 |
|
176 |
sub _current_language { |
177 |
return $_current_language; |
178 |
} |
179 |
|
180 |
|
166 |
|
181 |
# wrapper method to allow easier transition from HTML template pro to Template Toolkit |
167 |
# wrapper method to allow easier transition from HTML template pro to Template Toolkit |
182 |
sub param { |
168 |
sub param { |
Lines 296-302
sub themelanguage {
Link Here
|
296 |
# Try to find first theme for the selected language |
282 |
# Try to find first theme for the selected language |
297 |
for my $theme (@themes) { |
283 |
for my $theme (@themes) { |
298 |
if ( -e "$htdocs/$theme/$lang/modules/$tmpl" ) { |
284 |
if ( -e "$htdocs/$theme/$lang/modules/$tmpl" ) { |
299 |
$_current_language = $lang; |
|
|
300 |
return ($theme, $lang, \@themes) |
285 |
return ($theme, $lang, \@themes) |
301 |
} |
286 |
} |
302 |
} |
287 |
} |