projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b99e68
)
created_before/after: throw error if specified page does not exist
author
Joey Hess
<joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:47:04 +0000
(13:47 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:47:04 +0000
(13:47 -0400)
This assumes that no ctime means the page doesn't exist, which seems
reasonable.
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index bac48c9a409ecbc0af863d58dbdcede06b89c265..43ffb1fd8362802dc19f06074437e1f0a4c87f27 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-2056,7
+2056,7
@@
sub match_created_before ($$;@) {
}
}
else {
- return IkiWiki::
FailReason->new("$testpage has no ctime
");
+ return IkiWiki::
ErrorReason->new("$testpage does not exist
");
}
}
@@
-2076,7
+2076,7
@@
sub match_created_after ($$;@) {
}
}
else {
- return IkiWiki::
FailReason->new("$testpage has no ctime
");
+ return IkiWiki::
ErrorReason->new("$testpage does not exist
");
}
}