afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-04-03 03:43 pm

[dw-free] Use $c->print_poster() in Negatives

[commit: http://hg.dwscoalition.org/dw-free/rev/31f5419a2a0e]

http://bugs.dwscoalition.org/show_bug.cgi?id=646

Negatives: use \$c->print_poster()

Patch by [personal profile] aveleh.

Files modified:
  • bin/upgrading/s2layers/negatives/layout.s2
--------------------------------------------------------------------------------
diff -r 161e16887967 -r 31f5419a2a0e bin/upgrading/s2layers/negatives/layout.s2
--- a/bin/upgrading/s2layers/negatives/layout.s2	Fri Apr 03 15:36:19 2009 +0000
+++ b/bin/upgrading/s2layers/negatives/layout.s2	Fri Apr 03 15:42:45 2009 +0000
@@ -328,21 +328,6 @@ function YearPage::print_year_links ()
         }
     }
 }
-#####################################
-#Print entry poster
-function Page::print_entry_poster(EntryLite e) {
-    var Page p = get_page();
-    if ($p isa FriendsPage or $p isa EntryPage or $p isa ReplyPage) {
-        $e.poster->print();
-        if (not $e.poster->equals($e.journal)) {
-            print $*text_posting_in;
-            $e.journal->print();
-        }
-    }
-    else {
-        $e.poster->print();
-    }
-}
 #Print_body
 function Page::print_entry (Entry e)
 {
@@ -571,14 +556,7 @@ function EntryPage::print_comment (Comme
     }
     println "";
 
-    if(not $*display_ljtag and defined $c.poster){
-        var string userlink = get_url($c.poster,"recent");
-        println "<a href=\"$userlink\">$c.poster.name</a> (<a href=\"$*SITEROOT/userinfo.bml?user=$c.poster.username&mode=full\">$c.poster.username</a>)";
-    } else {
-        $c->print_poster();
-    }
-
-    print " said: ";
+    $c->print_poster();
     if (defined $c.subject_icon) {
         print "$c.subject_icon";
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org