Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -586,13 +586,13 @@ |
587 | 587 | $r .= '<tr><td><strong>'.wfMsg('confirmaccount-email').'</strong></td><td width=\'100%\'>' .
|
588 | 588 | htmlspecialchars($row->acr_email) . $econf.'</td></tr>';
|
589 | 589 | # Truncate this, blah blah...
|
590 | | - $bio = substr( htmlspecialchars($row->acr_bio), 0, 500 );
|
591 | | - if( strlen($bio) < strlen($row->acr_bio) ) {
|
592 | | - $bio = substr( $bio, 0, strrpos($bio,' ') );
|
593 | | - $bio .= " . . .";
|
| 590 | + $bio = htmlspecialchars($row->acr_bio);
|
| 591 | + $preview = $wgLang->truncate( $bio, 400 );
|
| 592 | + if( strlen($preview) < strlen($bio) ) {
|
| 593 | + $preview = substr( $preview, 0, strrpos($preview,' ') );
|
| 594 | + $preview .= " . . .";
|
594 | 595 | }
|
595 | | -
|
596 | | - $r .= '<tr><td><strong>'.wfMsg('confirmaccount-bio').'</strong></td><td width=\'100%\'><i>'.$bio.'</i></td></tr>';
|
| 596 | + $r .= '<tr><td><strong>'.wfMsg('confirmaccount-bio').'</strong></td><td width=\'100%\'><i>'.$preview.'</i></td></tr>';
|
597 | 597 | $r .= '</table></li>';
|
598 | 598 |
|
599 | 599 | return $r;
|