Correct the logic, because network page now has a $.view of "network" 
instead of "read"

        Patch by kareila. 

diffs (24 lines):

diff -r e1c82151d4b7 -r 712a215e4459 bin/upgrading/s2layers/core1.s2
--- a/bin/upgrading/s2layers/core1.s2   Thu Sep 24 18:08:04 2009 +0000
+++ b/bin/upgrading/s2layers/core1.s2   Thu Sep 24 18:16:29 2009 +0000
@@ -2571,7 +2571,7 @@ function CommentInfo::print_postlink() {
     if ($.maxcomments) {
         print safe "$*text_max_comments";
     } else {
-        print safe "<a href=\"$.post_url\">"+($p.view == "read" ? 
$*text_post_comment_friends : $*text_post_comment)+"</a>";
+        print safe "<a href=\"$.post_url\">"+($p.view == "read" or $p.view == 
"network" ? $*text_post_comment_friends : $*text_post_comment)+"</a>";
     }
 }
 function CommentInfo::print() {
diff -r e1c82151d4b7 -r 712a215e4459 bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2   Thu Sep 24 18:08:04 2009 +0000
+++ b/bin/upgrading/s2layers/core2.s2   Thu Sep 24 18:16:29 2009 +0000
@@ -4781,7 +4781,7 @@ function CommentInfo::print_postlink() {
     if ($.maxcomments) {
         print safe "$*text_max_comments";
     } else {
-        print safe "<a href=\"$.post_url\">"+($p.view == "read" ? 
$*text_post_comment_friends : $*text_post_comment)+"</a>";
+        print safe "<a href=\"$.post_url\">"+($p.view == "read" or $p.view == 
"network" ? $*text_post_comment_friends : $*text_post_comment)+"</a>";
     }
 }
 function CommentInfo::print() {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to