Revision 39294de3
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
bin/mozilla/common.pl | ||
---|---|---|
14 | 14 |
use SL::DBUtils; |
15 | 15 |
use SL::Form; |
16 | 16 |
use SL::MoreCommon; |
17 |
use SL::Helper::Flash; |
|
17 | 18 |
|
18 | 19 |
use strict; |
19 | 20 |
|
... | ... | |
727 | 728 |
$main::lxdebug->leave_sub(); |
728 | 729 |
} |
729 | 730 |
|
730 |
sub flash { |
|
731 |
my $category = shift; |
|
732 |
$category = 'info' if $category eq 'information'; |
|
733 |
|
|
734 |
$::form->{FLASH} ||= { }; |
|
735 |
$::form->{FLASH}->{ $category } ||= [ ]; |
|
736 |
push @{ $::form->{FLASH}->{ $category } }, @_; |
|
737 |
} |
|
738 |
|
|
739 |
sub render_flash { |
|
740 |
return $::form->parse_html_template('common/flash'); |
|
741 |
} |
|
742 |
|
|
743 | 731 |
if ($::use_rdbo) { |
744 | 732 |
eval { |
745 | 733 |
require SL::DB::Helpers::Mappings; |
Auch abrufbar als: Unified diff
Flash-Funktionen in eigenes Package verschoben