widget: unnamed options as placeholders instead of path
[minimedit.git] / widget / nieuws.php
index c12efc8db3348b5b262f1c24dfe77357832bc4d5..73258b2a31c53024f2693d0b5d7cc1cb5531b77b 100644 (file)
@@ -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 "<div>\n";