lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnas...@apache.org
Subject [Lucene.Net] svn commit: r1083304 - /incubator/lucene.net/site/trunk/lib/view.pm
Date Sat, 19 Mar 2011 21:49:39 GMT
Author: pnasser
Date: Sat Mar 19 21:49:38 2011
New Revision: 1083304

URL: http://svn.apache.org/viewvc?rev=1083304&view=rev
Log:
updating view.pm to dynamically get basefile

Modified:
    incubator/lucene.net/site/trunk/lib/view.pm

Modified: incubator/lucene.net/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/lucene.net/site/trunk/lib/view.pm?rev=1083304&r1=1083303&r2=1083304&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/lib/view.pm (original)
+++ incubator/lucene.net/site/trunk/lib/view.pm Sat Mar 19 21:49:38 2011
@@ -36,6 +36,7 @@ use Switch;
 use Dotiac::DTL;
 use Dotiac::DTL::Addon::markup;
 use ASF::Util qw( read_text_file );
+use File::Basename;
 
 BEGIN { push @Dotiac::DTL::TEMPLATE_DIRS, "templates"; }
 
@@ -98,7 +99,7 @@ sub sitemap {
 
 
 sub _tagline {
-	my $file = "roadmap.mdtext"; # pop(split m!/!, shift);
+	my $file = basename($_); #"roadmap.mdtext"; # pop(split m!/!, shift);
      
 	switch ($file) {
 		case "code.mdtext"	{ return "<h1>Grab the Code</h1><h2>Binaries, Source,
Archives, whatever you need...</h2>" }



Mime
View raw message