Improvements

This commit is contained in:
Danang Probo Sayekti 2015-07-14 19:36:27 +07:00
commit c7bf485275
4 changed files with 10 additions and 4 deletions

View file

@ -909,7 +909,7 @@ function get_teaser($text)
{
$teaserType = config('teaser.type');
if (strlen(strip_tags($text)) < config('teaser.char') || $teaserType === 'full') {
if ($teaserType === 'full') {
echo $text;
} else {
$string = preg_replace('/\s\s+/', ' ', strip_tags($text));