more bugfixes. last of this round of syntaxCheck.t fixes.
This commit is contained in:
parent
9b867ab627
commit
f8de599f35
11 changed files with 40 additions and 31 deletions
|
|
@ -45,6 +45,7 @@ The ID of a template for custom layout of the link and text.
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my $session = shift;
|
||||
my @param = @_;
|
||||
my $i18n = WebGUI::International->new($session,'Macro_LoginToggle');
|
||||
my $login = $param[0] || $i18n->get(716);
|
||||
|
|
@ -60,9 +61,9 @@ sub process {
|
|||
$var{'toggle.text'} = $logout;
|
||||
}
|
||||
if ($param[2]) {
|
||||
return WebGUI::Asset::Template->newByUrl($param[2])->process(\%var);
|
||||
return WebGUI::Asset::Template->newByUrl($session,$param[2])->process(\%var);
|
||||
} else {
|
||||
return WebGUI::Asset::Template->new("PBtmpl0000000000000043")->process(\%var);
|
||||
return WebGUI::Asset::Template->new($session,"PBtmpl0000000000000043")->process(\%var);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue