diff options
| author | ivan <ivan> | 2009-12-31 14:00:35 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2009-12-31 14:00:35 +0000 |
| commit | 5c96d46d56f2066bb40d9a34c4db56f53f43c6f2 (patch) | |
| tree | 0ef4d2c590268e347047f0f3c2f1e87ab5f9216c /rt/bin/mason_handler.fcgi | |
| parent | 63a268637b2d51a8766412617724b9436439deb6 (diff) | |
merging 3.8.7!!!
Diffstat (limited to 'rt/bin/mason_handler.fcgi')
| -rwxr-xr-x | rt/bin/mason_handler.fcgi | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/rt/bin/mason_handler.fcgi b/rt/bin/mason_handler.fcgi index 38f590124..8092455c1 100755 --- a/rt/bin/mason_handler.fcgi +++ b/rt/bin/mason_handler.fcgi @@ -2,8 +2,8 @@ # BEGIN BPS TAGGED BLOCK {{{ # # COPYRIGHT: -# -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # <jesse@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -51,12 +51,17 @@ package RT::Mason; use strict; use vars '$Handler'; use File::Basename; -require ('/opt/rt3/bin/webmux.pl'); + +require (dirname(__FILE__) . '/webmux.pl'); # Enter CGI::Fast mode, which should also work as a vanilla CGI script. require CGI::Fast; RT::Init(); +$Handler ||= RT::Interface::Web::Handler->new( + RT->Config->Get('MasonParameters') +); + while ( my $cgi = CGI::Fast->new ) { # the whole point of fastcgi requires the env to get reset here.. @@ -67,7 +72,7 @@ while ( my $cgi = CGI::Fast->new ) { $ENV{'ENV'} = '' if defined $ENV{'ENV'}; $ENV{'IFS'} = '' if defined $ENV{'IFS'}; - Module::Refresh->refresh if $RT::DevelMode; + Module::Refresh->refresh if RT->Config->Get('DevelMode'); RT::ConnectToDatabase(); if ( ( !$Handler->interp->comp_exists( $cgi->path_info ) ) |
