Switched macro to use new nesting mechanism.
This commit is contained in:
parent
85cdb5bd0c
commit
147aac791a
51 changed files with 133 additions and 435 deletions
|
|
@ -19,7 +19,7 @@ use WebGUI::URL;
|
|||
use WebGUI::Utility;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _replacement {
|
||||
sub process {
|
||||
my ($temp, @param, $styleId);
|
||||
@param = WebGUI::Macro::getParams($_[0]);
|
||||
$temp = WebGUI::URL::append($session{env}{REQUEST_URI},'makePrintable=1');
|
||||
|
|
@ -41,14 +41,6 @@ sub _replacement {
|
|||
return $temp;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my ($output, $temp);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^r\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^r\;/_replacement()/ge;
|
||||
return $output;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue