roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r506460 - in /incubator/roller/trunk/web/WEB-INF: classes/ApplicationResources.properties velocity/weblog.vm
Date Mon, 12 Feb 2007 14:30:22 GMT
Author: snoopdave
Date: Mon Feb 12 06:30:21 2007
New Revision: 506460

URL: http://svn.apache.org/viewvc?view=rev&rev=506460
Log:
Fix for ROL-1343, remoteHost may be null

Modified:
    incubator/roller/trunk/web/WEB-INF/classes/ApplicationResources.properties
    incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm

Modified: incubator/roller/trunk/web/WEB-INF/classes/ApplicationResources.properties
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/WEB-INF/classes/ApplicationResources.properties?view=diff&rev=506460&r1=506459&r2=506460
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/classes/ApplicationResources.properties (original)
+++ incubator/roller/trunk/web/WEB-INF/classes/ApplicationResources.properties Mon Feb 12
06:30:21 2007
@@ -730,6 +730,7 @@
 macro.weblog.linkbacks=Linkbacks
 macro.weblog.comments=Comments
 macro.weblog.comment=Comment
+macro.weblog.comment.unknown=Unknown
 macro.weblog.addcomment=Add a Comment
 macro.weblog.datepattern=MMMMM dd, yyyy 'at' hh:mm aa z
 macro.weblog.date.timestampFormat=MMM dd yyyy, hh:mm:ss a z

Modified: incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm?view=diff&rev=506460&r1=506459&r2=506460
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm (original)
+++ incubator/roller/trunk/web/WEB-INF/velocity/weblog.vm Mon Feb 12 06:30:21 2007
@@ -197,8 +197,10 @@
                     <a rel="nofollow" href="$comment.url"><b>$comment.name</b></a>
                 #elseif (!$utils.isEmpty($comment.name))
                     <b>$comment.name</b>
-                #else
+                #elseif ($comment.remoteHost)
                     <b>$comment.remoteHost</b>
+                #else
+                    <b>$text.get("macro.weblog.comment.unknown")</b>
                 #end
 
                 $text.get("macro.weblog.on") $utils.formatDate($comment.postTime, $text.get(
"macro.weblog.datepattern" ))



Mime
View raw message