didn't work with new Macro::Process
This commit is contained in:
parent
e6ae7f1e30
commit
60f41a83b9
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ use WebGUI::Session;
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub process {
|
sub process {
|
||||||
my @param = WebGUI::Macro::getParams($1);
|
my @param = WebGUI::Macro::getParams($_[0]);
|
||||||
return $session{form}{$param[0]};
|
return $session{form}{$param[0]};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ sub process {
|
||||||
my ($temp, @param);
|
my ($temp, @param);
|
||||||
@param = WebGUI::Macro::getParams($_[0]);
|
@param = WebGUI::Macro::getParams($_[0]);
|
||||||
if ($param[0] ne "") {
|
if ($param[0] ne "") {
|
||||||
$temp = round(rand()*$1);
|
$temp = round(rand()*$param[0]);
|
||||||
} else {
|
} else {
|
||||||
$temp = round(rand()*1000000000);
|
$temp = round(rand()*1000000000);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue