Strip html from the subject so that the link to the entry doesn't break
         in the S2 active entries module.

        Patch by avialan. 

diffs (12 lines):

diff -r c0bc4044e818 -r a94a9ded49c3 bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2   Thu Jun 24 18:41:59 2010 -0500
+++ b/bin/upgrading/s2layers/core2.s2   Thu Jun 24 19:10:57 2010 -0500
@@ -3834,7 +3834,7 @@ function print_module_active() {
         open_module( "active", $*text_module_active_entries, "" );
         var int i = 1;
                 foreach var Entry activeentry ( $activeentries ) {
-                    var string subject = ( $activeentry.subject != "" ? 
$activeentry.subject : "$*text_nosubject" );
+                    var string subject = ( $activeentry.subject != "" ? 
striphtml($activeentry.subject) : "$*text_nosubject" );
                     $subjects[size $subjects] = """$i: <a 
href="$activeentry.permalink_url">$subject</a>""";
                     $i++;
                  }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to