page: replace global variables by $Page object
[minimedit.git] / widget / nieuws.php
index c1b651a44853bd5ddb49c5383b7d0fb3bb4e4ab9..977357e5e572d4afff1d43b863f44caa0837c309 100644 (file)
@@ -53,7 +53,7 @@ function printtoc($input, $class = FALSE)
 }
 }
 
-$articles = (ltrim($Args, '/') ?: 'nieuws');
+$articles = (ltrim($Page->path, '/') ?: 'nieuws');
 if (strpos($articles, '/') === FALSE) {
        if (@$Place['view'] === 'toc') {
                print "<div>\n";