add documentation for urlIcal template variable, and make it point to the URL, rather than the method

This commit is contained in:
Colin Kuskie 2007-03-27 20:43:16 +00:00
parent 211bbb552a
commit 9e0c0d2594
3 changed files with 13 additions and 1 deletions

View file

@ -973,7 +973,11 @@ sub view {
$var->{"urlMonth"} = $self->getUrl("type=month;start=".$params->{start});
$var->{"urlSearch"} = $self->getSearchUrl;
$var->{"urlPrint"} = $self->getUrl("type=".$params->{type}.";start=".$params->{start}.";print=1");
$var->{"urlIcal"} = $self->www_ical;
$var->{"urlIcal"} = $self->getUrl(
sprintf "func=ical;type=%s;start=%d
$params->{type},
$params->{start},
);
# Parameters
$var->{"paramStart"} = $params->{start};

View file

@ -132,6 +132,9 @@ our $HELP = {
{
'name' => 'urlPrint'
},
{
'name' => 'urlIcal'
},
{
'name' => 'paramStart'
},

View file

@ -365,6 +365,11 @@ our $I18N = {
lastUpdated => 1171043883,
},
'urlIcal' => {
message => q|A URL to the iCal feed for the calendar, starting at this month.|,
lastUpdated => 1175028512,
},
'paramStart' => {
message => q|The starting date of the calendar.|,
lastUpdated => 1171043883,