]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup.pm
map: The fix for #449285 was buggy and broke display of parents in certian circumstances.
[ikiwiki.git] / IkiWiki / Setup.pm
index a34515f2148a2e8619ac70c3e1844086c20bfab3..f8bb664c4b46bc716aa6a02fe745ce3483afe794 100644 (file)
@@ -8,10 +8,12 @@ use warnings;
 use strict;
 use IkiWiki;
 use open qw{:utf8 :std};
+use File::Spec;
 
 sub load ($) { # {{{
        my $setup=IkiWiki::possibly_foolish_untaint(shift);
-       delete $config{setup};
+       $config{setupfile}=File::Spec->rel2abs($setup);
+
        #translators: The first parameter is a filename, and the second
        #translators: is a (probably not translated) error message.
        open (IN, $setup) || error(sprintf(gettext("cannot read %s: %s"), $setup, $!));