Added FetchMimeType macro.
Fix bad namespaces, package names and labels in StockData and InOutBoard help.
This commit is contained in:
parent
45de852b61
commit
b74cddb637
7 changed files with 88 additions and 16 deletions
25
lib/WebGUI/Macro/FetchMimeType.pm
Normal file
25
lib/WebGUI/Macro/FetchMimeType.pm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package WebGUI::Macro::FetchMimeType; # edit this line to match your own macro name
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2005 Plain Black Corporation.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::Session;
|
||||
use LWP::MediaTypes qw(guess_media_type);
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my $path = shift;
|
||||
return guess_media_type($path);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue