X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8fd22c9ade887e18e01dafd8a24842f6cfdc93ab..189155ee61481277a57fc4342048a763e5b54ecb:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index c12efc8..dd019a3 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -44,7 +44,7 @@ function printtoc($input, $class = FALSE) $html .= sprintf(' %s', showdate($dateparts)); if ($class == 'gallery' and $article->img) { $html = "
$html
"; - $html = sprintf('', $article->thumb(200)) . $html; + $html = sprintf('', $article->thumb(200)) . $html; } $html = sprintf('%s', $article->link, $html); print "
  • $html
  • \n"; @@ -53,7 +53,7 @@ function printtoc($input, $class = FALSE) } } -$articles = (ltrim($Page->path, '/') ?: 'nieuws'); +$articles = $Page->place[0] ?? 'nieuws'; if (strpos($articles, '/') === FALSE) { if (@$Page->place['view'] === 'toc') { print "
    \n";