[Koha-cvs] CVS: koha/reports manager.pl,1.1,1.1.2.1

Paul POULAIN tipaul at users.sourceforge.net
Thu Feb 3 17:26:29 CET 2005


Update of /cvsroot/koha/koha/reports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2218/reports

Modified Files:
      Tag: rel_2_2
	manager.pl 
Log Message:
Managing absolute url instead of relative ones, for plugins (for mod_perl compliance).
Note that the absolute url differs between developper & production servers.

Index: manager.pl
===================================================================
RCS file: /cvsroot/koha/koha/reports/manager.pl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** manager.pl	30 Mar 2004 16:09:04 -0000	1.1
--- manager.pl	3 Feb 2005 16:26:21 -0000	1.1.2.1
***************
*** 42,46 ****
  $template->param(do_it => $do_it,
  		report_name => $report_name);
! my $plugin = "./".$report_name.".plugin";
  require $plugin;
  if ($do_it) {
--- 42,50 ----
  $template->param(do_it => $do_it,
  		report_name => $report_name);
! my $cgidir = C4::Context->config('intranetdir')."/cgi-bin/reports/";
! unless (opendir(DIR, "$cgidir")) {
! 	$cgidir = C4::Context->intranetdir."/reports/";
! } 
! my $plugin = $cgidir.$report_name.".plugin";
  require $plugin;
  if ($do_it) {





More information about the Koha-cvs mailing list