Remove a couple of warns.
[koha.git] / about.pl
index 59d047a..be499c5 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -24,6 +24,7 @@ use C4::Context;
 use CGI;
 use LWP::Simple;
 use XML::Simple;
+use Config;
 
 my $query = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
@@ -32,25 +33,30 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $query,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { parameters => 1 },
+        flagsrequired   => { catalogue => 1 },
         debug           => 1,
     }
 );
 
 my $kohaVersion   = C4::Context::KOHAVERSION;
 my $osVersion     = `uname -a`;
+my $perl_path = $^X;
+if ($^O ne 'VMS') {
+    $perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i;
+}
 my $perlVersion   = $];
 my $mysqlVersion  = `mysql -V`;
 my $apacheVersion = `httpd -v`;
 $apacheVersion = `httpd2 -v` unless $apacheVersion;
+$apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion;
 my $zebraVersion = `zebraidx -V`;
 
-# $apacheVersion =  (`/usr/sbin/apache2 -V`)[0];
-
 $template->param(
     kohaVersion   => $kohaVersion,
     osVersion     => $osVersion,
+    perlPath      => $perl_path,
     perlVersion   => $perlVersion,
+    perlIncPath   => [ map { perlinc => $_ }, @INC ],
     mysqlVersion  => $mysqlVersion,
     apacheVersion => $apacheVersion,
     zebraVersion  => $zebraVersion,
@@ -63,6 +69,7 @@ CGI::Carp
 CGI::Session
 Class::Factory::Util
 Class::Accessor
+Compress::Zlib
 DBD::mysql
 DBI
 Data::Dumper
@@ -73,6 +80,7 @@ File::Temp
 GD::Barcode::UPCE
 Getopt::Long
 Getopt::Std
+Image::Magick
 HTML::Template::Pro
 HTTP::Cookies
 HTTP::Request::Common
@@ -101,6 +109,8 @@ Test
 Test::Harness
 Test::More
 Text::CSV
+Text::CSV_XS
+Text::Iconv
 Text::Wrap
 Time::HiRes
 Time::localtime
@@ -111,6 +121,7 @@ XML::LibXSLT
 XML::SAX::ParserFactory
 XML::Simple
 XML::RSS
+YAML::Syck
       /;
 
 my @components = ();