summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-08 19:41:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-08 19:41:20 -0300
commit553ab777e1973ee72c0c36ab1b5cd88b5d8b2450 (patch)
tree136c66b8d09d073713cbdda8ab682e5984fe6628
parent53c97d3fa0b81985ac91b3ad89165134a2c82c9d (diff)
downloadcalendario-553ab777e1973ee72c0c36ab1b5cd88b5d8b2450.tar.gz
calendario-553ab777e1973ee72c0c36ab1b5cd88b5d8b2450.tar.bz2
Do not add the date in the widget link
-rw-r--r--calendario.module6
1 files 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;
}