Commit ccd3e38e47dd80050ba581f9107bbd8cfde3a6a4
1 parent
3954ba70
Exists in
master
and in
48 other branches
Minor fixes on software_communities_plugin/allow_variables macro
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com> Signed-off-by: Pedro de Lyra <pedrodelyra@gmail.com> Signed-off-by: Rodrigo Souto <rodrigo@colivre.coop.br> Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/macros/allow_variables.rb
@@ -10,6 +10,6 @@ class SoftwareCommunitiesPlugin::AllowVariables < Noosfero::Plugin::Macro | @@ -10,6 +10,6 @@ class SoftwareCommunitiesPlugin::AllowVariables < Noosfero::Plugin::Macro | ||
10 | end | 10 | end |
11 | 11 | ||
12 | def parse(params, inner_html, source) | 12 | def parse(params, inner_html, source) |
13 | - source.profile.identifier | 13 | + URI.unescape(inner_html).gsub(/{profile}/,source.profile.identifier) |
14 | end | 14 | end |
15 | end | 15 | end |