roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r394832 - /incubator/roller/trunk/web/WEB-INF/classes/weblog.vm
Date Tue, 18 Apr 2006 03:58:17 GMT
Author: snoopdave
Date: Mon Apr 17 20:58:15 2006
New Revision: 394832

URL: http://svn.apache.org/viewcvs?rev=394832&view=rev
Log:
Another fix to summary/text logic

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

Modified: incubator/roller/trunk/web/WEB-INF/classes/weblog.vm
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/web/WEB-INF/classes/weblog.vm?rev=394832&r1=394831&r2=394832&view=diff
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/classes/weblog.vm (original)
+++ incubator/roller/trunk/web/WEB-INF/classes/weblog.vm Mon Apr 17 20:58:15 2006
@@ -226,16 +226,16 @@
    #else
       #if( $pageModel.weblogEntry) 
           ## on single-entry pages, we prefer text
-          #if( $entry.text )
+          #if( $utilities.isNotEmpty($entry.text) )
               #set( $sourceText = $entry.text )
           #else 
               #set( $sourceText = $entry.summary )
           #end
       #else
           ## on multi-entry pages, we prefer summary
-          #if( $entry.summary )
+          #if( $utilities.isNotEmpty($entry.summary) )
               #set( $sourceText = $entry.summary )
-              #if( $entry.text )
+              #if( $utilities.isNotEmpty($entry.text) )
                  #set( $readMore = "<a class='readmore' href='$baseURL$entry.permaLink'>
...</a>" )
                  #set( $sourceText = "$sourceText$readMore")
               #end



Mime
View raw message