Index: branches/liquidthreads/extensions/LqtBaseView.php |
— | — | @@ -507,23 +507,21 @@ |
508 | 508 | function showThreadFooter( $thread ) { |
509 | 509 | global $wgLang; // TODO global. |
510 | 510 | |
511 | | - $thread_author = $thread->root()->originalAuthor(); |
512 | | - $color_number = $this->selectNewUserColor($thread_author); |
513 | | - $p = new Parser(); $sig = $p->getUserSig($thread_author); |
| 511 | + $author = $thread->root()->originalAuthor(); |
| 512 | + $color_number = $this->selectNewUserColor($author); |
| 513 | + |
| 514 | + $sig = $this->user->getSkin()->userLink( $author->getID(), $author->getName() ) . |
| 515 | + $this->user->getSkin()->userToolLinks( $author->getID(), $author->getName() ); |
| 516 | + |
514 | 517 | $timestamp = $wgLang->timeanddate($thread->timestamp()); |
515 | 518 | |
516 | 519 | $this->output->addHTML(<<<HTML |
517 | 520 | <ul class="lqt_footer"> |
518 | | -<li class="lqt_author_sig lqt_post_color_{$color_number}"> |
519 | | -HTML |
520 | | -); |
521 | | - $this->output->addWikitext($sig, false); #gah! |
522 | | - $this->output->addHTML(<<<HTML |
523 | | -</li> |
| 521 | +<li class="lqt_author_sig lqt_post_color_{$color_number}">$sig</li> |
524 | 522 | <li>$timestamp</li> |
525 | 523 | HTML |
526 | | -); |
527 | | - |
| 524 | + ); |
| 525 | + |
528 | 526 | foreach( $this->applicableThreadCommands($thread) as $command ) { |
529 | 527 | $label = $command['label']; |
530 | 528 | $href = $command['href']; |
— | — | @@ -535,6 +533,7 @@ |
536 | 534 | $this->output->addHTML( "<li><span class=\"lqt_footer_disabled\">$label</span></li>" ); |
537 | 535 | } |
538 | 536 | } |
| 537 | + |
539 | 538 | $this->output->addHTML('</ul>'); |
540 | 539 | } |
541 | 540 | |