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