[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
aveleh.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=646
Negatives: use \$c->print_poster()
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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"; } --------------------------------------------------------------------------------