-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Subjects editing has been re-worked to use a workflow file * document.mime_type added git-svn-id: https://svn.eprints.org/eprints/branches/3.3/system@7179 9491667e-5006-0410-a446-efbe8990b998
- Loading branch information
Tim Brody
committed
Oct 24, 2011
1 parent
4d59ac2
commit 70fef50
Showing
70 changed files
with
2,295 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Load mimemap from /etc/mime.types | ||
|
||
foreach my $mime_types ( | ||
$c->{base_path} . "/lib/mime.types", | ||
"/etc/mime.types", | ||
) | ||
{ | ||
if( open(my $fh, "<", $mime_types) ) | ||
{ | ||
while(defined(my $line = <$fh>)) | ||
{ | ||
next if $line =~ /^\s*#/; | ||
next if $line !~ /\S/; | ||
chomp($line); | ||
my( $mt, @ext ) = split /\s+/, $line; | ||
$c->{mimemap}->{$_} = $mt for @ext; | ||
} | ||
close($fh); | ||
} | ||
} |
Oops, something went wrong.