You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/22 20:57:39 UTC
svn commit: r1580308 - in /thrift/cms-site/trunk/lib: path.pm view.pm
Author: joes
Date: Sat Mar 22 19:57:39 2014
New Revision: 1580308
URL: http://svn.apache.org/r1580308
Log:
can't improve on standard methods
Modified:
thrift/cms-site/trunk/lib/path.pm
thrift/cms-site/trunk/lib/view.pm
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1580308&r1=1580307&r2=1580308&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Sat Mar 22 19:57:39 2014
@@ -6,12 +6,12 @@ use warnings;
my $conf = Load join "", <DATA>;
our @patterns = (
- [qr!^/sitemap\.html$!, sitemap => {
+ [qr!^/sitemap\.html$!, my_sitemap => {
conf => $conf,
headers => { title => "Sitemap" },
nest => 1,
}],
- [qr!/index\.html$!, sitemap => {
+ [qr!/index\.html$!, my_sitemap => {
conf => $conf,
headers => { title => "Index" }, # "Index" is magical here
}],
Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1580308&r1=1580307&r2=1580308&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Sat Mar 22 19:57:39 2014
@@ -15,7 +15,7 @@ sub my_memoize {
}
# doesn't require snippets
-sub sitemap {
+sub my_sitemap {
local $ASF::Value::Offline = 1;
&ASF::View::sitemap;
}