git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: store placeholder values in $Page object
[minimedit.git]
/
widget
/
nieuws.php
diff --git
a/widget/nieuws.php
b/widget/nieuws.php
index 4f4fd454d1adada0fb8c081a892c27cdf2cba510..7185036121902fc2b4e946197282b9f28b583c06 100644
(file)
--- a/
widget/nieuws.php
+++ b/
widget/nieuws.php
@@
-55,7
+55,7
@@
function printtoc($input, $class = FALSE)
$articles = (ltrim($Page->path, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
$articles = (ltrim($Page->path, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
- if (@$Place['view'] === 'toc') {
+ if (@$P
age->p
lace['view'] === 'toc') {
print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
@@
-68,10
+68,10
@@
if (strpos($articles, '/') === FALSE) {
$articles .= '/????';
}
$articles .= '/????';
}
-if (@$Place['view'] === 'toc') {
+if (@$P
age->p
lace['view'] === 'toc') {
printtoc($articles);
return;
}
ob_start();
printtoc($articles);
return;
}
ob_start();
-shownews($articles, @$Place['n'] ?: 5);
+shownews($articles, @$P
age->p
lace['n'] ?: 5);
print $Page->render();
print $Page->render();