X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/dff44e4a6d98cccd2b4af56397a80dc127b0242b..338e49df1533e09a8ba3f1225f75a2bf4deaf4a8:/IkiWiki/Plugin/transient.pm diff --git a/IkiWiki/Plugin/transient.pm b/IkiWiki/Plugin/transient.pm index 9811aa010..c0ad5fc11 100644 --- a/IkiWiki/Plugin/transient.pm +++ b/IkiWiki/Plugin/transient.pm @@ -25,10 +25,12 @@ sub getsetup () { our $transientdir; sub checkconfig () { - $transientdir = $config{wikistatedir}."/transient"; - # add_underlay treats relative underlays as relative to the installed - # location, not the cwd. That's not what we want here. - IkiWiki::add_literal_underlay($transientdir); + if (defined $config{wikistatedir}) { + $transientdir = $config{wikistatedir}."/transient"; + # add_underlay treats relative underlays as relative to the installed + # location, not the cwd. That's not what we want here. + IkiWiki::add_literal_underlay($transientdir); + } } sub change (@) {