$title = sprintf(
$link ? '<h3><a href="/%2$s">%s</a></h3>' : '<h2>%s</h2>',
getoutput([1 => ' <small class="date">'.$date.'</small>']),
- preg_replace('/\.html$/', '', $url)
+ $url
);
return preg_replace('{<h2>(.*?)</h2>}', $title, $html);
}
print "<article>";
ob_start();
include $url;
- print shownewsarticle($url);
+ print shownewsarticle(preg_replace('/\.html$/', '', $url));
print "</article>\n\n";
if (--$limit <= 0) break;
if ($page and !is_numeric($page)) {
$edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
- print shownewsarticle($Args, FALSE, $edit);
+ print shownewsarticle($Page.$Args, FALSE, $edit);
return 1;
}