X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcommon.pl;h=a6f7ef48c6ab49b9c07eecf0aba10cac1243a98b;hb=5cb20a8ede64622de3c1069f4e58ede6aea4f93e;hp=57acc954d4adebe9b0c7345adad835bf63766817;hpb=4856da7e20f5dba5c1ecca440869de3f6bb0a70a;p=kivitendo-erp.git diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 57acc954d..a6f7ef48c 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -14,6 +14,7 @@ use SL::Common; use SL::DBUtils; use SL::Form; use SL::MoreCommon; +use SL::Helper::Flash; use strict; @@ -727,23 +728,11 @@ 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; + require SL::DB::Helper::Mappings; sub db { - goto &SL::DB::Helpers::Mappings::db; + goto &SL::DB::Helper::Mappings::db; } } or die $@; }