You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/01/31 23:41:08 UTC
svn commit: r1563318 - /myfaces/site/cms-site/trunk/lib/view.pm
Author: lu4242
Date: Fri Jan 31 22:41:08 2014
New Revision: 1563318
URL: http://svn.apache.org/r1563318
Log:
test how to fix documentation
Modified:
myfaces/site/cms-site/trunk/lib/view.pm
Modified: myfaces/site/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/lib/view.pm?rev=1563318&r1=1563317&r2=1563318&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Fri Jan 31 22:41:08 2014
@@ -362,9 +362,8 @@ sub breadcrumbs {
my $sep = "/";
my $ignoreCount = 0;
for (@path) {
- $ignoreCount = $ignoreCount + 1;
- $relpath .= "$sep$_";
- if ($ignoreCount > 2) {
+ $ignoreCount = $ignoreCount + 1;
+ $relpath .= "$sep$_";
if ($_) {
$_ = "";
my $datafile = "content$relpath.mdtext";
@@ -383,8 +382,9 @@ sub breadcrumbs {
$ext = "";
$sep = "";
}
- push @rv, qq(<a href="$relpath$ext">$_</a>) if $_;
- }
+ if ($ignoreCount > 1) {
+ push @rv, qq(<a href="$relpath$ext">$_</a>) if $_;
+ }
}
return join " » = ", @rv;
}