removed old template system and replaced with template asset
This commit is contained in:
parent
023ce77917
commit
4798ba497d
50 changed files with 614 additions and 660 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package WebGUI::Macro::SubscriptionItem;
|
||||
|
||||
use strict;
|
||||
use WebGUI::Asset::Template;
|
||||
use WebGUI::Macro;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::URL;
|
||||
|
|
@ -8,11 +9,9 @@ use WebGUI::URL;
|
|||
sub process {
|
||||
my ($subscriptionId, $templateId, %var);
|
||||
($subscriptionId, $templateId) = WebGUI::Macro::getParams(@_);
|
||||
|
||||
%var = WebGUI::SQL->quickHash('select * from subscription where subscriptionId='.quote($subscriptionId));
|
||||
|
||||
$var{url} = WebGUI::URL::page('op=purchaseSubscription&sid='.$subscriptionId);
|
||||
return WebGUI::Template::process($templateId || 1, 'Macro/SubscriptionItem', \%var);
|
||||
return WebGUI::Asset::Template->new($templateId || "PBtmpl0000000000000046")->process(\%var);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue