summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-02 15:33:26 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-02 15:33:26 +0000
commitee84ed37709ab91e419cdfa748ab0d8e71bf99b6 (patch)
treeda0fbd86fb0d1403396191a26cfa987a06325758 /IkiWiki.pm
parent3eea683d71f95fcda8e555002567fe081fee9937 (diff)
* Fix stupid bug in date matching, patch from Roland Mas. Closes: #381132
* Added many unit tests for pagespec_match.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 3f2ffa4ce..d9559bde4 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -599,16 +599,15 @@ sub match_backlink ($$) { #{{{
} #}}}
sub match_creation_day ($$) { #{{{
- return if (gmtime($pagectime{shift()}))[3] == shift;
+ return ((gmtime($pagectime{shift()}))[3] == shift);
} #}}}
sub match_creation_month ($$) { #{{{
- return if (gmtime($pagectime{shift()}))[4] + 1 == shift;
+ return ((gmtime($pagectime{shift()}))[4] + 1 == shift);
} #}}}
sub match_creation_year ($$) { #{{{
- return if (gmtime($pagectime{shift()}))[5] + 1900 == shift;
+ return ((gmtime($pagectime{shift()}))[5] + 1900 == shift);
} #}}}
-
1