Feature or Bug?
|
|
By DesiredUsername , Section Dev Notes [] Posted on Sun Mar 13, 2005 at 09:48:28 AM PST
|
|
In a macro that calls a box, the boxularity is evaluated before the variables, so it is impossible to call a parameterized box from a macro.
|
Isn't this a no-brainer? But maybe there's some security issue I don't understand.
--- Macros.pm~ 2005-03-12 09:11:18.000000000 -0500
+++ Macros.pm 2005-03-13 12:29:24.000000000 -0500
@@ -81,6 +81,4 @@
my $macro_text = $S->{UI}->{MACROS}->{$macro_name} || '';
$macro_text =~ s/\|/%%/g;
- $macro_text = $S->interpolate($macro_text,$S->{UI}->{BLOCKS},{special
=>'true'});
- $macro_text = $S->interpolate($macro_text,$S->{UI}->{VARS},{clear => 'true'});
if ($args) {
@@ -101,4 +99,7 @@
$macro_text =~ s/\(\(\d+\)\)//g if $macro_text;
+ $macro_text = $S->interpolate($macro_text,$S->{UI}->{BLOCKS},{special
=>'true'});
+ $macro_text = $S->interpolate($macro_text,$S->{UI}->{VARS},{clear => 'true'});
+
# If we're rendering macros verbosely, surround them with a comment
# delimiting them and containing the original macro text (escaped).
|
|
Story Views
|
12 Scoop users have viewed this story.
|
|