INSTALL.fcgi encoding
[kivitendo-erp.git] / bin / mozilla / common.pl
index 57acc95..8398fb7 100644 (file)
 
 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;