]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/common.pl
Flash-Funktionen in eigenes Package verschoben
[kivitendo-erp.git] / bin / mozilla / common.pl
index c889bc100e7d1d9ff87d083546aaf88e2d561d54..143551f743863d3c3efbebe62f1d2ec8b20369f7 100644 (file)
@@ -14,6 +14,7 @@ use SL::Common;
 use SL::DBUtils;
 use SL::Form;
 use SL::MoreCommon;
+use SL::Helper::Flash;
 
 use strict;
 
@@ -727,19 +728,6 @@ sub gl_transaction {
   $main::lxdebug->leave_sub();
 }
 
-sub flash {
-  my $category = shift;
-  $category    = 'info' if $category eq 'information';
-
-  $::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;