aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
Diffstat (limited to 'category.php')
-rw-r--r--category.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/category.php b/category.php
index d8e93d1d5..4150a97c6 100644
--- a/category.php
+++ b/category.php
@@ -161,6 +161,17 @@ $calendar_view_link = PHPWG_ROOT_PATH.'category.php'
if ( ! isset($_GET['calendar']) )
{
$calendar_view_link .= (empty($_GET)? '?':'&' ) . 'calendar=';
+ $template->assign_block_vars(
+ 'calendar_view',
+ array( 'URL' => $calendar_view_link )
+ );
+}
+else
+{
+ $template->assign_block_vars(
+ 'normal_view',
+ array( 'URL' => $calendar_view_link )
+ );
}
$template->assign_vars(
@@ -200,7 +211,6 @@ $template->assign_vars(
'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php',
'U_PROFILE'=> PHPWG_ROOT_PATH.'profile.php',
- 'U_CALENDAR' => $calendar_view_link
)
);