X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=reports%2Fmanager.pl;h=5572f26ed593902640407f1e25d93c2a91e64619;hb=73dd78ce1cb9ee58d036290294834afd97cfbeeb;hp=a21f62905795456ecf4d5ae0907a3033077cc876;hpb=100e6a9808ead4ee8d951da59ead1550e75bb4c3;p=koha.git diff --git a/reports/manager.pl b/reports/manager.pl index a21f629057..5572f26ed5 100755 --- a/reports/manager.pl +++ b/reports/manager.pl @@ -40,12 +40,9 @@ my ($template, $borrowernumber, $cookie) }); $template->param(do_it => $do_it, report_name => $report_name, - intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), - intranetstylesheet => C4::Context->preference("intranetstylesheet"), - IntranetNav => C4::Context->preference("IntranetNav"), ); my $cgidir = C4::Context->config('intranetdir')."/cgi-bin/reports/"; -unless (opendir(DIR, "$cgidir")) { +unless (-r $cgidir and -d $cgidir) { $cgidir = C4::Context->intranetdir."/reports/"; } my $plugin = $cgidir.$report_name.".plugin";