Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9c8fa668

Von Tamino Steinert vor etwa 1 Jahr 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
}
sub flash_later {
# message and details are at index 1 and 2: make sure they are stored as strings,
# as LoadBlessed is deactivated, and YAML::XS does not provide Stringify
for my $i (1, 2) {
$_[$i] .= '' if defined $_[$i];
}
$::auth->set_session_value({ key => "FLASH", value => _store_flash($::auth->get_session_value('FLASH'), @_), auto_restore => 1 });
}

Auch abrufbar als: Unified diff