Switched new functions to using C4::Context.

This commit is contained in:
arensb 2002-10-05 16:55:09 +00:00
parent f0d284e6bd
commit ba786212eb
1 changed files with 3 additions and 3 deletions

View File

@ -97,6 +97,7 @@ my $path = C4::Context->config('includes') ||
"/usr/local/www/hdl/htdocs/includes";
#---------------------------------------------------------------------------------------------------------
# FIXME - POD
sub gettemplate {
my ($tmplbase, $opac) = @_;
@ -119,11 +120,12 @@ sub gettemplate {
}
#---------------------------------------------------------------------------------------------------------
# FIXME - POD
sub themelanguage {
my ($htdocs, $tmpl) = @_;
# language preferences....
my $dbh=C4Connect;
my $dbh = C4::Context->dbh;
my $sth=$dbh->prepare("SELECT value FROM systempreferences WHERE variable='opaclanguages'");
$sth->execute;
my ($lang) = $sth->fetchrow;
@ -137,8 +139,6 @@ sub themelanguage {
$sth->finish;
my @themes = split " ", $theme;
$dbh->disconnect;
my ($theme, $lang);
# searches through the themes and languages. First template it find it returns.
# Priority is for getting the theme right.