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: r1083328 - /incubator/lucene.net/site/trunk/lib/view.pm
Date Sat, 19 Mar 2011 23:15:33 GMT
Author: pnasser
Date: Sat Mar 19 23:15:33 2011
New Revision: 1083328

URL: http://svn.apache.org/viewvc?rev=1083328&view=rev
Log:
fixing view.pm to account for empty path

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=1083328&r1=1083327&r2=1083328&view=diff
==============================================================================
--- incubator/lucene.net/site/trunk/lib/view.pm (original)
+++ incubator/lucene.net/site/trunk/lib/view.pm Sat Mar 19 23:15:33 2011
@@ -99,8 +99,11 @@ sub sitemap {
 
 
 sub _tagline {
-	my $file = basename($_); #"roadmap.mdtext"; # pop(split m!/!, shift);
-     
+    my $file = ""; #for some reason when updating .mdtext files $_ is empty..
+	if ($_) { 
+	    $file = basename($_); #
+    }
+	
 	switch ($file) {
 		case "code.mdtext"	{ return "<h1>Grab the Code</h1><h2>Binaries, Source,
Archives, whatever you need...</h2>" }
 		case "conversation.mdtext"	{ return "<h1>Join the Conversation</h1><h2>Tell
us how we are doing and help guide our future</h2>" }



Mime
View raw message