Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Feature or Bug? Developer Diary
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).
< Lucidity | Test >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· DesiredUsername's Diary

Story Views
  12 Scoop users have viewed this story.

Display: Sort:
Feature or Bug? | 0 comments ( topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search