"/usr/local/www/hdl/htdocs/includes";
#---------------------------------------------------------------------------------------------------------
+# FIXME - POD
sub gettemplate {
my ($tmplbase, $opac) = @_;
}
#---------------------------------------------------------------------------------------------------------
+# 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;
$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.