Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e1938585

Von Tamino Steinert vor 7 Tagen hinzugefügt

  • ID e19385852acca05135bd5eed6f1489c79016d994
  • Vorgänger 7bf16444
  • Nachfolger 50b2c44e

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