X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMason.pm;h=07e650a413a2ac476e85def5507b9ec2369f7181;hb=20950bb21ee5dd8839a05dfcd58efa0a98e48e5a;hp=db54ecbd4401cf9650ab5bd479bce9221b97d92b;hpb=31f2e890b5b3e1b0ad29a877ff67bc641ea1fc40;p=freeside.git diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index db54ecbd4..07e650a41 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -133,10 +133,14 @@ if ( -e $addl_handler_use_file ) { ); use FS::Misc::eps2png qw( eps2png ); use FS::Report::FCC_477; + use FS::Report::Table; use FS::Report::Table::Monthly; + use FS::Report::Table::Daily; use FS::TicketSystem; use FS::NetworkMonitoringSystem; use FS::Tron qw( tron_lint ); + use FS::Locales; + use FS::L10N; use FS::agent; use FS::agent_type; @@ -279,6 +283,8 @@ if ( -e $addl_handler_use_file ) { use FS::hardware_type; use FS::hardware_status; use FS::did_order_item; + use FS::msa; + use FS::rate_center; # Sammath Naur if ( $FS::Mason::addl_handler_use ) { @@ -404,6 +410,11 @@ if ( -e $addl_handler_use_file ) { $m->comp('/elements/errorpage-popup.html', @_); } + sub mt { + use vars qw($lh); + $lh->maketext(@_); + } + sub redirect { my( $location ) = @_; use vars qw($m); @@ -524,13 +535,15 @@ sub mason_interps { ${$_[0]} = "'". ${$_[0]}. "'"; }; + my $defang_sub = sub { + ${$_[0]} = $html_defang->defang(${$_[0]}); + }; + my $fs_interp = new HTML::Mason::Interp ( %interp, comp_root => $fs_comp_root, - escape_flags => { 'js_string' => $js_string_sub, - 'defang' => sub { - ${$_[0]} = $html_defang->defang(${$_[0]}); - }, + escape_flags => { 'js_string' => $js_string_sub, + 'defang' => $defang_sub, }, compiler => HTML::Mason::Compiler::ToObject->new( allow_globals => [qw(%session)],