Revamp interface of branch transfer limits to give finer conrol of bulk selections.
[koha.git] / reports / manager.pl
index a21f629..5572f26 100755 (executable)
@@ -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";