myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1566820 - /myfaces/site/cms-site/trunk/lib/view.pm
Date Mon, 10 Feb 2014 23:11:07 GMT
Author: lu4242
Date: Mon Feb 10 23:11:07 2014
New Revision: 1566820

URL: http://svn.apache.org/r1566820
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=1566820&r1=1566819&r2=1566820&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Mon Feb 10 23:11:07 2014
@@ -53,7 +53,7 @@ sub single_narrative {
             my $headerKey = substr($key, 4);
             my $command = ${args{headers}}{$headerKey};
             # TODO: parse parameter here
-            if ($command = "pagetree") {
+            if ($command eq "pagetree") {
                  my($ptfile, $ptdir, $ptext) = fileparse($args{path}, qr/\.[^.]*/);
                  my $basePath = "$ptdir$ptfile";
                  if (!(-d "content$basePath/")){
@@ -62,7 +62,7 @@ sub single_narrative {
                  }
                  $args{$headerKey} = pagetree("content$basePath/", $basePath, -1);
             }
-            if ($command = "pagetree_1") {
+            if ($command eq "pagetree(1)") {
                  my($ptfile, $ptdir, $ptext) = fileparse($args{path}, qr/\.[^.]*/);
                  my $basePath = "$ptdir$ptfile";
                  if (!(-d "content$basePath/")){
@@ -71,7 +71,7 @@ sub single_narrative {
                  }
                  $args{$headerKey} = pagetree("content$basePath/", $basePath, 1);
             }
-            if ($command = "pagetree_2") {
+            if ($command eq "pagetree(2)") {
                  my($ptfile, $ptdir, $ptext) = fileparse($args{path}, qr/\.[^.]*/);
                  my $basePath = "$ptdir$ptfile";
                  if (!(-d "content$basePath/")){



Mime
View raw message