koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/reports manager.pl,1.1,1.1.2.1
Date: Thu, 03 Feb 2005 08:26:29 -0800

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) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]