Revision ca9e9f88
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
# Do not use these id's to store information across requests.
|
||
my $_id_sequence = int rand 1e7;
|
||
sub _tag_id {
|
||
return $_id_sequence = ($_id_sequence + 1) % 1e7;
|
||
return "id_" . ( $_id_sequence = ($_id_sequence + 1) % 1e7 );
|
||
}
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Layouthelper: Automatisch generierte ids müssen mit einem alphabetischen Zeichen anfangen.