I was deleting some include files from the directory of our custom template, and now we're getting errors about missing files. It looks like Output.pm is trying to find some of these includes, but why? What's it trying to do here: sub startmenu($) { # edit the paths in here my ($type)=shift; if ($type eq 'issue') { open (FILE,"$path/issues-top.inc") || die "could not find : $path/issues- top.inc"; } elsif ($type eq 'opac') { open (FILE,"$path/opac-top.inc") || die "could not find : $path/opac- top.inc"; } elsif ($type eq 'member') { open (FILE,"$path/members-top.inc") || die "could not find : $path/members- top.inc"; } elsif ($type eq 'acquisitions'){ open (FILE,"$path/acquisitions-top.inc") || die "could not find : $path/acquisition-top.inc"; } elsif ($type eq 'report'){ open (FILE,"$path/reports-top.inc") || die "could not find : $path/reports- top.inc"; } elsif ($type eq 'circulation') { open (FILE,"$path/circulation-top.inc") || die "could not find : $path/circulation-top.inc"; } elsif ($type eq 'admin') { open (FILE,"$path/parameters-top.inc") || die "could not find : $path/parameters-top.inc"; } else { open (FILE,"$path/cat-top.inc") || die "could not find : $path/cat- top.inc"; } my @string=<FILE>; close FILE; # my $count=@string; # $string[$count]="<BLOCKQUOTE>"; return @string; } -- Owen ---- Nelsonville Public Library Koha 2.0.0-pre-x (CVS)
On 2003-11-19 15:25:38 +0000 Owen Leonard <oleonard@athenscounty.lib.oh.us> wrote:
I was deleting some include files from the directory of our custom template, and now we're getting errors about missing files. It looks like Output.pm is trying to find some of these includes, but why? What's it trying to do here:
I *think* this is legacy code from before HTML::Template, but I'm not sure. I've edited C4::Output to generate the include path from the template directory instead of a line in the config file. -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
participants (2)
-
MJ Ray -
Owen Leonard