SL::Auth: evaluate_rights_ary: Negierung (!) ermöglichen
[kivitendo-erp.git] / SL / InstallationCheck.pm
index ec2b719..56ec690 100644 (file)
@@ -127,9 +127,9 @@ sub template_dirs {
 
 sub classes_from_latex {
   my ($path, $class) = @_;
-  eval { use String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return;
-  $path  = shell_quote $path;
-  $class = shell_quote $class;
+  eval { require String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return;
+  $path  = String::ShellQuote::shell_quote $path;
+  $class = String::ShellQuote::shell_quote $class;
 
   open my $pipe, q#egrep -rs '^[\ \t]*# . "$class' $path". q# | sed 's/ //g' | awk -F '{' '{print $2}' | awk -F '}' '{print $1}' |#;
   my @cls = <$pipe>;