Index: openacs-4/packages/rss-support/tcl/rss-generation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/rss-support/tcl/rss-generation-procs.tcl,v diff -u -N -r1.18 -r1.19 --- openacs-4/packages/rss-support/tcl/rss-generation-procs.tcl 27 Oct 2014 16:41:53 -0000 1.18 +++ openacs-4/packages/rss-support/tcl/rss-generation-procs.tcl 7 Aug 2017 23:48:29 -0000 1.19 @@ -52,14 +52,14 @@ append rss {} \n append rss {} \n - append rss "[ad_quotehtml $channel_title]" \n + append rss "[ns_quotehtml $channel_title]" \n append rss "$channel_link" \n - append rss "[ad_quotehtml $channel_description]" \n + append rss "[ns_quotehtml $channel_description]" \n append rss {OpenACS 5.0} \n - append rss "[ad_quotehtml $channel_lastBuildDate]" \n + append rss "[ns_quotehtml $channel_lastBuildDate]" \n if { $channel_pubDate ne "" } { - append rss "[ad_quotehtml $channel_pubDate]" \n + append rss "[ns_quotehtml $channel_pubDate]" \n } if {$image eq ""} { @@ -81,19 +81,19 @@ append rss "\n" array set iarray $image - append rss "[ad_quotehtml $iarray(title)]\n" + append rss "[ns_quotehtml $iarray(title)]\n" append rss "$iarray(url)\n" - append rss "[ad_quotehtml $iarray(link)]\n" + append rss "[ns_quotehtml $iarray(link)]\n" if {[info exists iarray(width)]} { - set element [ad_quotehtml $iarray(width)] + set element [ns_quotehtml $iarray(width)] append rss "$element\n" } if {[info exists iarray(height)]} { - set element [ad_quotehtml $iarray(height)] + set element [ns_quotehtml $iarray(height)] append rss "$element\n" } if {[info exists iarray(description)]} { - set element [ad_quotehtml $iarray(description)] + set element [ns_quotehtml $iarray(description)] append rss "$element\n" } @@ -105,25 +105,25 @@ array set iarray $item append rss {} \n - append rss "[ad_quotehtml $iarray(title)]" \n + append rss "[ns_quotehtml $iarray(title)]" \n - append rss "[ad_quotehtml $iarray(link)]" \n - append rss {} [ad_quotehtml $iarray(link)] {} \n + append rss "[ns_quotehtml $iarray(link)]" \n + append rss {} [ns_quotehtml $iarray(link)] {} \n if { ([info exists iarray(description)] && $iarray(description) ne "")} { - append rss "[ad_quotehtml $iarray(description)]" \n + append rss "[ns_quotehtml $iarray(description)]" \n } if { ([info exists iarray(timestamp)] && $iarray(timestamp) ne "") } { - append rss "[ad_quotehtml $iarray(timestamp)]" \n + append rss "[ns_quotehtml $iarray(timestamp)]" \n } if { ([info exists iarray(category)] && $iarray(category) ne "") } { - append rss "[ad_quotehtml $iarray(category)]" \n + append rss "[ns_quotehtml $iarray(category)]" \n } if { ([info exists iarray(enclosure_url)] && $iarray(enclosure_url) ne "") && ([info exists iarray(enclosure_length)] && $iarray(enclosure_length) ne "") && ([info exists iarray(enclosure_type)] && $iarray(enclosure_type) ne "") } { - append rss "" + append rss "" } append rss {} \n } @@ -171,38 +171,38 @@ append rss "\n" append rss "" - append rss [ad_quotehtml $channel_title] + append rss [ns_quotehtml $channel_title] append rss "\n" append rss "" append rss $channel_link append rss "\n" append rss "" - append rss [ad_quotehtml $channel_description] + append rss [ns_quotehtml $channel_description] append rss "\n" if {$channel_pubDate eq ""} { append rss "$channel_date\n" } else { - append rss "[ad_quotehtml $channel_pubDate]\n" + append rss "[ns_quotehtml $channel_pubDate]\n" } if {$channel_copyright ne ""} { append rss "" - append rss [ad_quotehtml $channel_copyright] + append rss [ns_quotehtml $channel_copyright] append rss "\n" } if {$channel_managingEditor ne ""} { append rss "" - append rss [ad_quotehtml $channel_managingEditor] + append rss [ns_quotehtml $channel_managingEditor] append rss "\n" } if {$channel_webMaster ne ""} { append rss "" - append rss [ad_quotehtml $channel_webMaster] + append rss [ns_quotehtml $channel_webMaster] append rss "\n" } @@ -225,7 +225,7 @@ array set imarray $image # channel image handling - append rss "\n" + append rss "\n" append rss "\n" append rss "\n" @@ -234,7 +234,7 @@ foreach item $items { array unset iarray array set iarray $item - append rss "\n" + append rss "\n" } append rss "\n" @@ -243,11 +243,11 @@ # now top level image append rss "\n" - append rss "[ad_quotehtml $imarray(title)]\n" + append rss "[ns_quotehtml $imarray(title)]\n" append rss "$imarray(url)\n" - append rss "[ad_quotehtml $imarray(link)]\n" + append rss "[ns_quotehtml $imarray(link)]\n" if {[info exists iarray(width)]} { - set element [ad_quotehtml $iarray(width)] + set element [ns_quotehtml $iarray(width)] append rss "$element\n" } append rss "\n" @@ -256,24 +256,24 @@ foreach item $items { array unset iarray array set iarray $item - append rss "\n" - set element [ad_quotehtml $iarray(title)] + append rss "\n" + set element [ns_quotehtml $iarray(title)] append rss "$element\n" - append rss "[ad_quotehtml $iarray(link)]\n" + append rss "[ns_quotehtml $iarray(link)]\n" if {[info exists iarray(description)]} { - set element [ad_quotehtml $iarray(description)] + set element [ns_quotehtml $iarray(description)] append rss "$element\n" } if {[info exists iarray(timestamp)]} { - set element [ad_quotehtml $iarray(timestamp)] + set element [ns_quotehtml $iarray(timestamp)] append rss "$element\n" } if {[info exists iarray(author)]} { - set element [ad_quotehtml $iarray(author)] + set element [ns_quotehtml $iarray(author)] append rss "$element\n" } if {[info exists iarray(category)]} { - set element [ad_quotehtml $iarray(category)] + set element [ns_quotehtml $iarray(category)] append rss "$element\n" } @@ -320,54 +320,54 @@ append rss "\n" append rss "" - append rss [ad_quotehtml $channel_title] + append rss [ns_quotehtml $channel_title] append rss "\n" append rss "" - append rss [ad_quotehtml $channel_link] + append rss [ns_quotehtml $channel_link] append rss "\n" append rss "" - append rss [ad_quotehtml $channel_description] + append rss [ns_quotehtml $channel_description] append rss "\n" append rss "" - append rss [ad_quotehtml $channel_language] + append rss [ns_quotehtml $channel_language] append rss "\n" if {$channel_copyright ne ""} { append rss "" - append rss [ad_quotehtml $channel_copyright] + append rss [ns_quotehtml $channel_copyright] append rss "\n" } if {$channel_managingEditor ne ""} { append rss "" - append rss [ad_quotehtml $channel_managingEditor] + append rss [ns_quotehtml $channel_managingEditor] append rss "\n" } if {$channel_webMaster ne ""} { append rss "" - append rss [ad_quotehtml $channel_webMaster] + append rss [ns_quotehtml $channel_webMaster] append rss "\n" } if {$channel_rating ne ""} { append rss "" - append rss [ad_quotehtml $channel_rating] + append rss [ns_quotehtml $channel_rating] append rss "\n" } if {$channel_pubDate ne ""} { append rss "" - append rss [ad_quotehtml $channel_pubDate] + append rss [ns_quotehtml $channel_pubDate] append rss "\n" } if {$channel_lastBuildDate ne ""} { append rss "" - append rss [ad_quotehtml $channel_lastBuildDate] + append rss [ns_quotehtml $channel_lastBuildDate] append rss "\n" } @@ -377,13 +377,13 @@ if {$channel_skipDays ne ""} { append rss "" - append rss [ad_quotehtml $channel_skipDays] + append rss [ns_quotehtml $channel_skipDays] append rss "\n" } if {$channel_skipHours ne ""} { append rss "" - append rss [ad_quotehtml $channel_skipHours] + append rss [ns_quotehtml $channel_skipHours] append rss "\n" } @@ -406,19 +406,19 @@ append rss "\n" array set iarray $image - append rss "[ad_quotehtml $iarray(title)]\n" + append rss "[ns_quotehtml $iarray(title)]\n" append rss "$iarray(url)\n" - append rss "[ad_quotehtml $iarray(link)]\n" + append rss "[ns_quotehtml $iarray(link)]\n" if {[info exists iarray(width)]} { - set element [ad_quotehtml $iarray(width)] + set element [ns_quotehtml $iarray(width)] append rss "$element\n" } if {[info exists iarray(height)]} { - set element [ad_quotehtml $iarray(height)] + set element [ns_quotehtml $iarray(height)] append rss "$element\n" } if {[info exists iarray(description)]} { - set element [ad_quotehtml $iarray(description)] + set element [ns_quotehtml $iarray(description)] append rss "$element\n" } @@ -429,11 +429,11 @@ array unset iarray array set iarray $item append rss "\n" - set element [ad_quotehtml $iarray(title)] + set element [ns_quotehtml $iarray(title)] append rss "$element\n" - append rss "[ad_quotehtml $iarray(link)]\n" + append rss "[ns_quotehtml $iarray(link)]\n" if {[info exists iarray(description)]} { - set element [ad_quotehtml $iarray(description)] + set element [ns_quotehtml $iarray(description)] if {[info exists iarray(timestamp)]} { # if {[info exists iarray(timeformat)]} { # set timeformat $iarray(timeformat) @@ -575,3 +575,9 @@ } return $rss } + +# Local variables: +# mode: tcl +# tcl-indent-level: 4 +# indent-tabs-mode: nil +# End: