Revision 2 - 2011-03-23 at 03:16:30

Home node for shiru

Put whatever you like here.

# Returns the path to the templates based on the Accept-Language

# settings of the user and of the available languages

# If no Accept-Language is present it uses the defined default

# Templates may also be found in the extensions/ tree

sub getTemplateIncludePath {

    my $cache = Bugzilla->request_cache;

    my $lang  = $cache->{'language'} || '';

    $cache->{"template_include_path_$lang"} ||= template_include_path({

        use_languages => Bugzilla->languages,

        only_language => $lang });

    return $cache->{"template_include_path_$lang"};

}
My tags:
 
Popular tags:
 
Powered by Catalyst