koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha plugin_launcher.pl,1.3,1.3.2.1


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha plugin_launcher.pl,1.3,1.3.2.1
Date: Thu, 03 Feb 2005 08:26:25 -0800

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

Modified Files:
      Tag: rel_2_2
        plugin_launcher.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: plugin_launcher.pl
===================================================================
RCS file: /cvsroot/koha/koha/plugin_launcher.pl,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -r1.3 -r1.3.2.1
*** plugin_launcher.pl  30 Jul 2004 13:54:27 -0000      1.3
--- plugin_launcher.pl  3 Feb 2005 16:26:22 -0000       1.3.2.1
***************
*** 30,33 ****
  my $plugin_name=$input->param("plugin_name");
  my $plugin_name="value_builder/".$input->param("plugin_name");
! require $plugin_name;
  &plugin($input);
--- 30,40 ----
  my $plugin_name=$input->param("plugin_name");
  my $plugin_name="value_builder/".$input->param("plugin_name");
! 
! # opening plugin. Just check wether we are on a developper computer on a 
production one
! # (the cgidir differs)
! my $cgidir = C4::Context->intranetdir ."/cgi-bin";
! unless (opendir(DIR, "$cgidir/value_builder")) {
!       $cgidir = C4::Context->intranetdir;
! } 
! require $cgidir."/".$plugin_name;
  &plugin($input);




reply via email to

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