Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9c8fa668

Von Tamino Steinert vor 2 Monaten hinzugefügt

  • ID 9c8fa6683b3578a64dce27407e1834bcbc3a1c8b
  • Vorgänger 3d2dcee8
  • Nachfolger 85556589

SL::Helper::Flash: Korrektur für Flash mit YAML::XS

SL::YAML benutzt YAML::XS wenn es installisert ist
YAML::XS hat im Gegensatz zu YAML kein Stringify

Unterschiede anzeigen:

SL/Helper/Flash.pm
21 21
}
22 22

  
23 23
sub flash_later {
24
  # message and details are at index 1 and 2: make sure they are stored as strings,
25
  # as LoadBlessed is deactivated, and YAML::XS does not provide Stringify
26
  for my $i (1, 2) {
27
    $_[$i] .=  '' if defined $_[$i];
28
  }
24 29
  $::auth->set_session_value({ key => "FLASH", value => _store_flash($::auth->get_session_value('FLASH'), @_), auto_restore => 1 });
25 30
}
26 31

  

Auch abrufbar als: Unified diff