plugins/Newsboy.php
changeset 14 a5263dadedf3
parent 13 4d8ce84092c9
child 15 f0cf0b512fbb
equal deleted inserted replaced
13:4d8ce84092c9 14:a5263dadedf3
   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           }