mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: fix archive links
This commit is contained in:
parent
1af9fafdd7
commit
42beb23f42
@ -99,9 +99,9 @@ class ArchiveWidget extends Widget {
|
||||
));
|
||||
|
||||
if($isMonthDisplay) {
|
||||
$link = $container->Link() . $sqlResult['Year']. '/' . sprintf("%'02d", $monthVal);
|
||||
$link = $container->Link($sqlResult['Year']) . '/' . sprintf("%'02d", $monthVal);
|
||||
} else {
|
||||
$link = $container->Link() . $sqlResult['Year'];
|
||||
$link = $container->Link($sqlResult['Year']);
|
||||
}
|
||||
|
||||
$results->push(new ArrayData(array(
|
||||
|
@ -92,7 +92,7 @@ class TagCloudWidget extends Widget {
|
||||
"Tag" => $tag,
|
||||
"Count" => $count,
|
||||
"Class" => $class,
|
||||
"Link" => $container->Link() . 'tag/' . urlencode($tag)
|
||||
"Link" => $container->Link('tag') . '/' . urlencode($tag)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user