diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-10-23 05:12:18 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-10-23 05:12:18 +0000 |
commit | cd67224be66931c9630e146831bc21ff854cb728 (patch) | |
tree | a084bb548453f062205aa825250ed439699d5e1e | |
parent | fc6ebdf0b2c0dae52b4073d78a032b7ef9fbedcb (diff) | |
download | ikiwiki-cd67224be66931c9630e146831bc21ff854cb728.tar ikiwiki-cd67224be66931c9630e146831bc21ff854cb728.tar.gz |
fix folding
-rw-r--r-- | IkiWiki/Plugin/calendar.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm index 536dbc075..a4a54d2c8 100644 --- a/IkiWiki/Plugin/calendar.pm +++ b/IkiWiki/Plugin/calendar.pm @@ -32,7 +32,7 @@ sub import { #{{{ hook(type => "preprocess", id => "calendar", call => \&preprocess); } #}}} -sub is_leap_year (@) { #{{ +sub is_leap_year (@) { #{{{ my %params=@_; return ($params{year} % 4 == 0 && (($params{year} % 100 != 0) || $params{year} % 400 == 0)); } #}}} @@ -197,9 +197,9 @@ EOF add_depends($params{page}, join(" or ", @list)); return $calendar; -} +} #}}} -sub format_year (@) { +sub format_year (@) { #{{{ my %params=@_; my $pagespec = $params{pages}; @@ -300,9 +300,9 @@ EOF EOF return $calendar; -} +} #}}} -sub preprocess (@) { +sub preprocess (@) { #{{{ my %params=@_; $params{pages} = "*" unless defined $params{pages}; $params{type} = "month" unless defined $params{type}; @@ -364,6 +364,6 @@ sub preprocess (@) { } return "\n<div class=\"calendar\">$calendar</div><!-- calendar -->\n"; -} +} #}} 1 |