Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | $row .= Xml::tags( 'td', null, $subject ); |
105 | 105 | |
106 | 106 | $author = $thread->author(); |
107 | | - $authorLink = $sk->userLink( $author->getID(), $author->getName() ); |
| 107 | + $authorLink = $sk->userLink( $author->getId(), $author->getName() ); |
108 | 108 | $row .= Xml::tags( 'td', null, $authorLink ); |
109 | 109 | |
110 | 110 | $row .= Xml::element( 'td', null, count( $thread->replies() ) ); |
Index: trunk/extensions/LiquidThreads/classes/LqtDispatch.php |
— | — | @@ -207,15 +207,16 @@ |
208 | 208 | $s = preg_replace( '/\<\/li\>$/', $appendix . '</li>', $s ); // TODO ew |
209 | 209 | } |
210 | 210 | else { |
| 211 | + global $wgOut; |
| 212 | + |
211 | 213 | $sig = ""; |
212 | 214 | $changeslist->insertUserRelatedLinks( $sig, $rc ); |
213 | 215 | |
214 | 216 | // This should be stored in RC. |
215 | 217 | $quote = Revision::newFromId( $rc->mAttribs['rc_this_oldid'] )->getText(); |
216 | 218 | if ( strlen( $quote ) > 230 ) { |
217 | | - global $wgOut; |
218 | 219 | $sk = $changeslist->skin; |
219 | | - substr( $quote, 0, 200 ) . |
| 220 | + $quote = substr( $quote, 0, 200 ) . |
220 | 221 | $sk->link( $thread->title(), wfMsg( 'lqt_rc_ellipsis' ), |
221 | 222 | array( 'class' => 'lqt_rc_ellipsis' ), array(), array( 'known' ) ); |
222 | 223 | } |
Index: trunk/extensions/LiquidThreads/classes/LqtThread.php |
— | — | @@ -190,9 +190,8 @@ |
191 | 191 | if ($this->authorId) { |
192 | 192 | return User::newFromId( $this->authorId ); |
193 | 193 | } else { |
194 | | - $u = User::newFromName( $this->authorName ); |
195 | | - |
196 | | - return $u; |
| 194 | + // Do NOT validate username. If the user did it, they did it. |
| 195 | + return User::newFromName( $this->authorName, false ); |
197 | 196 | } |
198 | 197 | } |
199 | 198 | |