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
|
|
@ -49,7 +49,7 @@ A template from the Macro/EditableToggle namespace to use for formatting the lin
|
|||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my $session = shift;
|
||||
if (exists $session->asset && $session->asset->canEdit && $session->user->isInGroup(12)) {
|
||||
if ($session->asset && $session->asset->canEdit && $session->user->isInGroup(12)) {
|
||||
my %var;
|
||||
my @param = @_;
|
||||
my $i18n = WebGUI::International->new($session,'Macro_EditableToggle');
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ sub process {
|
|||
|
||||
return $i18n->get('cannot find product') unless ($productId);
|
||||
|
||||
$product = WebGUI::Product->new($self->session,$productId);
|
||||
$product = WebGUI::Product->new($session,$productId);
|
||||
|
||||
if ($variantId) {
|
||||
$variant = [ $product->getVariant($variantId) ];
|
||||
|
|
@ -75,7 +75,7 @@ sub process {
|
|||
$var{'variants.message'} = $i18n->get('available product configurations');
|
||||
$templateId = $_[1] || $product->get('templateId');
|
||||
|
||||
return WebGUI::Asset::Template->new($ssession,$templateId)->process(\%var);
|
||||
return WebGUI::Asset::Template->new($session,$templateId)->process(\%var);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue