fix for: if more than one mediatype attached to a comment, the medias are shown multi...
authorngu <ngu>
Thu, 25 Jan 2007 19:52:42 +0000 (19:52 +0000)
committerngu <ngu>
Thu, 25 Jan 2007 19:52:42 +0000 (19:52 +0000)
templates/admin/commentlist.template

index 1a25c3a..f271925 100755 (executable)
         ${utility.prettyEncodeHTML(utility.subString(entry.description, 0, config["Mir.Admin.ListTextLengthLimit"]))}
 
         <br>
-          <if entry.to_all_media_images><call showCommentAttachment(entry, thisurl)></if>
-          <if entry.to_all_media_audio><call showCommentAttachment(entry, thisurl)></if>
-          <if entry.to_all_media_video><call showCommentAttachment(entry, thisurl)></if>
-          <if entry.to_all_media_other><call showCommentAttachment(entry, thisurl)></if>
+          <if entry.to_all_media_images || entry.to_all_media_audio || entry.to_all_media_video || entry.to_all_media_other>
+               <call showCommentAttachment(entry, thisurl)></if>
+          </if>
         <br>
         
         <if entry.main_url><br>URL: ${utility.encodeHTML(entry.main_url)}</if>