equal
deleted
inserted
replaced
446 { |
446 { |
447 $content = nb_trim_paragraph($content, 400, $trimmed); |
447 $content = nb_trim_paragraph($content, 400, $trimmed); |
448 } |
448 } |
449 if ( $trimmed ) |
449 if ( $trimmed ) |
450 { |
450 { |
451 $link = ' <a href="' . makeUrlNS('NewsBoy', $row['urlname'], false, true) . '">Read more...</a>'; |
451 $link = ' <a href="' . nb_make_article_url($row['urlname'], $row['name']) . '">Read more...</a>'; |
452 $content = preg_replace('/(.+?)<\/(p|ul|table|div|pre)>([\s]*?)$/Usi', '\\1' . $link . '</\\2>\\3', $content, 1); |
452 $content = preg_replace('/(.+?)<\/(p|ul|table|div|pre)>([\s]*?)$/Usi', '\\1' . $link . '</\\2>\\3', $content, 1); |
453 if ( !strstr($content, $link) ) |
453 if ( !strstr($content, $link) ) |
454 { |
454 { |
455 $content .= $link; |
455 $content .= $link; |
456 } |
456 } |