X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cataloguing%2Fplugin_launcher.pl;h=9a264ab16161ba7367c6451385a870c68f7533cb;hb=a904a9bac745c696d998c28b8eb82961ddde9207;hp=eb083b5b87f07e47e7fd0678ba4b28f614b25de1;hpb=f8e9fb6445dadbdef91e13a253c9c6bcb75e0eec;p=koha.git diff --git a/cataloguing/plugin_launcher.pl b/cataloguing/plugin_launcher.pl index eb083b5b87..9a264ab161 100755 --- a/cataloguing/plugin_launcher.pl +++ b/cataloguing/plugin_launcher.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl -# $Id$ # Copyright 2000-2002 Katipo Communications # @@ -15,24 +14,24 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; +#use warnings; FIXME - Bug 2505 use CGI; use C4::Context; - use C4::Output; my $input = new CGI; -my $plugin_name=$input->param("plugin_name"); my $plugin_name="cataloguing/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/cataloguing/value_builder")) { +my $vbdir = "$cgidir/cataloguing/value_builder"; +unless (-r $vbdir and -d $vbdir) { $cgidir = C4::Context->intranetdir; } do $cgidir."/".$plugin_name;