]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Setup.pm
fix a horrible mispelling
[ikiwiki.git] / IkiWiki / Setup.pm
index d2d1e4b8e7fd44b88c0ed64f110e609f78785ea5..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, $!));
@@ -79,7 +81,7 @@ sub getsetup () { #{{{
         # disable logging to syslog while dumping, broken plugins may
        # whine when loaded
        my $syslog=$config{syslog};
-        $config{syslog}=0;
+        $config{syslog}=undef;
 
        # Load all plugins, so that all setup options are available.
        my @plugins=grep { $_ ne $config{rcs} } sort(IkiWiki::listplugins());