Experimental rewrite of Stop Words administration screen. Feedback welcomed.
[koha-ffzg.git] / admin / koha2marclinks.pl
index 56e0cf9..7a57225 100755 (executable)
@@ -36,7 +36,7 @@ my $op=$input->param('op');
 my $script_name = 'koha2marclinks.pl';
 
 my ($template, $borrowernumber, $cookie)
-    = get_template_and_user({template_name => "parameters/koha2marclinks.tmpl",
+    = get_template_and_user({template_name => "admin/koha2marclinks.tmpl",
                             query => $input,
                             type => "intranet",
                             authnotrequired => 0,
@@ -106,8 +106,8 @@ if ($op eq 'add_form') {
                $fields{$kohafield}->{liblibrarian} = $liblibrarian;
        }
        #XXX: This might not work. Maybe should use a DBI call instead of SHOW COLUMNS
-       my $sth2=$dbh->prepare("SHOW COLUMNS from ?");
-       $sth2->execute($tablename);
+       my $sth2=$dbh->prepare("SHOW COLUMNS from $tablename");
+       $sth2->execute;
 
        my $toggle="white";
        my @loop_data = ();