Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
— | — | @@ -98,22 +98,13 @@ |
99 | 99 | $userLink = $linker->userLink( $thread->author()->getId(), $user ); |
100 | 100 | $talkpageLink = $linker->link( $thread->article()->getTitle() ); |
101 | 101 | $superthreadLink = $linker->link( $stTitle ); |
102 | | - |
103 | | - $description = ''; |
104 | | - if ( $thread->hasSuperThread() ) { |
105 | | - $description = wfMsgExt( |
106 | | - 'lqt-feed-reply-intro', |
107 | | - array( 'parse', 'replaceafter' ), |
108 | | - array( $talkpageLink, $userLink, $superthreadLink ) |
109 | | - ); |
110 | | - } else { |
111 | | - $description = wfMsgExt( |
112 | | - 'lqt-feed-new-thread-intro', |
113 | | - array( 'parse', 'replaceafter' ), |
114 | | - array( $talkpageLink, $userLink ) |
115 | | - ); |
116 | | - } |
117 | | - |
| 102 | + $description = wfMsgExt( |
| 103 | + $thread->hasSuperThread() |
| 104 | + ? 'lqt-feed-reply-intro', |
| 105 | + : 'lqt-feed-new-thread-intro', |
| 106 | + array( 'parse', 'replaceafter' ), |
| 107 | + array( $talkpageLink, $userLink, $superthreadLink, $user ) |
| 108 | + ); |
118 | 109 | $completeText = $description . $completeText; |
119 | 110 | |
120 | 111 | return new FeedItem( $titleStr, $completeText, $titleUrl, $timestamp, $user ); |