From fb9b0e39c6a431c5dccbfad91aec68fd03551007 Mon Sep 17 00:00:00 2001 From: rangi Date: Mon, 21 Apr 2003 03:40:04 +0000 Subject: [PATCH] Fixing bug 372 --- koha-tmpl/intranet-tmpl/default/en/modwebsites.tmpl | 4 ++-- modwebsites.pl | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/modwebsites.tmpl b/koha-tmpl/intranet-tmpl/default/en/modwebsites.tmpl index 35a359ca3e..71d41d169e 100644 --- a/koha-tmpl/intranet-tmpl/default/en/modwebsites.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/modwebsites.tmpl @@ -1,7 +1,7 @@

">Return to Details Page -EOF +

@@ -46,6 +46,6 @@ EOF -EOF + diff --git a/modwebsites.pl b/modwebsites.pl index 0a0ccfdd76..70f846db80 100755 --- a/modwebsites.pl +++ b/modwebsites.pl @@ -26,6 +26,7 @@ use C4::Search; use CGI; use C4::Output; use HTML::Template; +use C4::Auth; my $input = new CGI; my $biblionumber = $input->param('biblionumber'); @@ -38,7 +39,14 @@ if ($biblionumber eq '') { #print $input->header; #print startpage(); #print startmenu(); -my $template = gettemplate("modwebsites.tmpl"); +my ($template, $loggedinuser, $cookie) = get_template_and_user({ + template_name => "modwebsites.tmpl", + query => $input, + type => "intranet", + flagsrequired => {catalogue => 1}, + }); + + my @websitesloop; for (my $i = 0; $i < $count; $i++) { -- 2.39.5