]> git.p6c8.net - devedit.git/commitdiff
Some cleanings
authorpcanterino <>
Sat, 22 Jan 2011 12:56:36 +0000 (12:56 +0000)
committerpcanterino <>
Sat, 22 Jan 2011 12:56:36 +0000 (12:56 +0000)
modules/Tool.pm

index dafa3255adb1bf482d536b0e9b1f0136a4480014..2f72d1a10dcf20f60197529fa5dde92732411cd3 100644 (file)
@@ -40,14 +40,14 @@ use base qw(Exporter);
              encode_html
              equal_url
              file_name
-             is_archive
              in_array
+             is_archive
              is_disabled_command
              is_forbidden_file
              mode_string
              multi_string
              upper_path);
-             
+
 my @archive_exts = ('.zip',     '.tar', '.gz',
                     '.tar.gz',  '.tgz', '.bz2',
                     '.tar.bz2', '.tbz', '.tbz2',
@@ -308,12 +308,12 @@ sub in_array($$)
 sub is_archive($)
 {
  my $file = shift;
+
  foreach my $ext(@archive_exts)
  {
   return 1 if(lc(substr($file,length($file)-length($ext),length($ext))) eq lc($ext));
  }
+
  return;
 }
 

patrick-canterino.de