diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-08-20 10:13:14 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-08-30 13:25:53 -0400 |
commit | c4d4cad3befbbd444d094cbeb0b6ebba3910a025 (patch) | |
tree | 20852ca1a585b3699e97dd713e5c667e3980bd1f /IkiWiki.pm | |
parent | 1e7a53c70bb8c185f23f578cc6c1073b4285ccb1 (diff) | |
download | ikiwiki-c4d4cad3befbbd444d094cbeb0b6ebba3910a025.tar ikiwiki-c4d4cad3befbbd444d094cbeb0b6ebba3910a025.tar.gz |
Single dot in pagespec translates to 'current page'
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 3 |
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; |