X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcommon.pl;h=8398fb7b8833013b959f32b1ead973e0951f640f;hb=299b2a4ba2329c33390c5244ed9d235459e341bb;hp=57acc954d4adebe9b0c7345adad835bf63766817;hpb=4856da7e20f5dba5c1ecca440869de3f6bb0a70a;p=kivitendo-erp.git diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 57acc954d..8398fb7b8 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -11,9 +11,11 @@ use Carp; use SL::Common; +use SL::DB::Helper::Mappings; use SL::DBUtils; use SL::Form; use SL::MoreCommon; +use SL::Helper::Flash; use strict; @@ -727,25 +729,8 @@ sub gl_transaction { $main::lxdebug->leave_sub(); } -sub flash { - my $category = shift; - - $::form->{FLASH} ||= { }; - $::form->{FLASH}->{ $category } ||= [ ]; - push @{ $::form->{FLASH}->{ $category } }, @_; -} - -sub render_flash { - return $::form->parse_html_template('common/flash'); -} - -if ($::use_rdbo) { - eval { - require SL::DB::Helpers::Mappings; - sub db { - goto &SL::DB::Helpers::Mappings::db; - } - } or die $@; +sub db { + goto &SL::DB::Helper::Mappings::db; } 1;