[Bps-public-commit] rt-extension-customizecontenttype branch, master, updated. 97f446f517887f6562dcb4e2a92fa012dfbaed3b

? sunnavy sunnavy at bestpractical.com
Sat Apr 7 00:21:13 EDT 2012


The branch, master has been updated
       via  97f446f517887f6562dcb4e2a92fa012dfbaed3b (commit)
      from  0d2cbf99c8493fab6c8c3eae53b08b33c73025b5 (commit)

Summary of changes:
 lib/RT/Extension/CustomizeContentType.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 97f446f517887f6562dcb4e2a92fa012dfbaed3b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Apr 7 12:11:52 2012 +0800

    %ContentTypes is better

diff --git a/lib/RT/Extension/CustomizeContentType.pm b/lib/RT/Extension/CustomizeContentType.pm
index 0d56335..d193721 100644
--- a/lib/RT/Extension/CustomizeContentType.pm
+++ b/lib/RT/Extension/CustomizeContentType.pm
@@ -18,7 +18,7 @@ sub ContentType {
       unless $self->Filename && $self->Filename =~ /\.(\w+)$/;
     my $ext    = $1;
 
-    my $config = RT->Config->Get('CustomizeContentType') or return $content_type;
+    my $config = RT->Config->Get('ContentTypes') or return $content_type;
     return $config->{$ext} || $content_type;
 }
 
@@ -45,7 +45,7 @@ add RT::Extension::CustomizeContentType to @Plugins in RT's etc/RT_SiteConfig.pm
 
     Set( @Plugins, qw(... RT::Extension::CustomizeContentType) );
     Set(
-        %CustomizeContentType,
+        %ContentTypes,
         (
             't'    => 'text/x-perl-script',
             'psgi' => 'text/x-perl-script',

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list