[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 0794575a4d2a17c91d19ad48e0f21769e29c66b2

Stefan Hornburg racke at rt.icdevgroup.org
Thu May 13 09:44:50 UTC 2010


       via  0794575a4d2a17c91d19ad48e0f21769e29c66b2 (commit)
      from  0fa899f4d3ea21113a8f166ba02eb8a6ddb10a54 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0794575a4d2a17c91d19ad48e0f21769e29c66b2
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu May 13 11:44:13 2010 +0200

    Apply encode_special_entities filter to menu labels.

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/WellWell/Menu.pm |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/WellWell/Menu.pm b/lib/WellWell/Menu.pm
index 8ac02be..abf6a19 100644
--- a/lib/WellWell/Menu.pm
+++ b/lib/WellWell/Menu.pm
@@ -70,7 +70,7 @@ sub display {
 
 sub build_entries {
 	my ($entries_ref, $opt, $tree) = @_;
-	my (@out, $ref, $base_url, $uri, $cur_level, $form, $selected);
+	my (@out, $ref, $base_url, $uri, $cur_level, $form, $name_str, $selected);
 	
 	if ($opt->{selected}) {
 		$base_url = $Vend::Session->{last_url};
@@ -95,6 +95,8 @@ sub build_entries {
 
 			$cur_level = $ref->{level};
 		}
+
+		$name_str = Vend::Tags->filter({op => 'encode_special_entities', body => $ref->{name}});
 		
 		if ($ref->{url}) {
 			if ($opt->{selected}) {
@@ -114,10 +116,10 @@ sub build_entries {
 			}
 			
 			$uri = Vend::Tags->area({href => $ref->{url}, form => $form});
-			push(@out, qq{<li$selected><a href="$uri">$ref->{name}</a></li>});
+			push(@out, qq{<li$selected><a href="$uri">$name_str</a></li>});
 		}
 		else {
-			push(@out, qq{<li>$ref->{name}</li>});
+			push(@out, qq{<li>$name_str</li>});
 		}
 	}
 


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list