aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-08-20 10:13:14 +0200
committerJoey Hess <joey@kitenet.net>2010-08-30 13:25:53 -0400
commitc4d4cad3befbbd444d094cbeb0b6ebba3910a025 (patch)
tree20852ca1a585b3699e97dd713e5c667e3980bd1f /IkiWiki.pm
parent1e7a53c70bb8c185f23f578cc6c1073b4285ccb1 (diff)
downloadikiwiki-c4d4cad3befbbd444d094cbeb0b6ebba3910a025.tar
ikiwiki-c4d4cad3befbbd444d094cbeb0b6ebba3910a025.tar.gz
Single dot in pagespec translates to 'current page'
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index df8abe2c2..6fd112960 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2401,6 +2401,9 @@ package IkiWiki::PageSpec;
sub derel ($$) {
my $path=shift;
my $from=shift;
+ if ($path eq '.') {
+ $path = $from;
+ }
if ($path =~ m!^\./!) {
$from=~s#/?[^/]+$## if defined $from;