From 553ab777e1973ee72c0c36ab1b5cd88b5d8b2450 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 8 Aug 2012 19:41:20 -0300 Subject: Do not add the date in the widget link --- calendario.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendario.module b/calendario.module index c839472..95038cf 100644 --- a/calendario.module +++ b/calendario.module @@ -49,7 +49,8 @@ function calendario_widget($view = NULL) { //$date = isset($path[2]) ? .'/'. $path[2] : ''; $date = isset($view->args[0]) ? '/'. $view->args[0] : ''; $argument = NULL; - $link = $period . $date; + //$link = $period . $date; + $link = $period; break; default: @@ -59,7 +60,8 @@ function calendario_widget($view = NULL) { $date = isset($view->args[1]) ? '/'. $view->args[1] : ''; //$argument = $path[2]; $argument = isset($view->args[0]) ? '/'. $view->args[0] : ''; - $link = $type . $argument .'/'. $period . $date; + //$link = $type . $argument .'/'. $period . $date; + $link = $type . $argument .'/'. $period; break; } -- cgit v1.2.3