]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/transient.pm
Add add_literal_underlay and use it for the transient underlay
[ikiwiki.git] / IkiWiki / Plugin / transient.pm
index c482b8552f78efbe218b71de14bf21cf97a6cd2c..9811aa010e3d31672dd930596082f83d69d7a02c 100644 (file)
@@ -25,10 +25,10 @@ sub getsetup () {
 our $transientdir;
 
 sub checkconfig () {
-       eval q{use Cwd 'abs_path'};
-       error($@) if $@;
-       $transientdir = abs_path($config{wikistatedir})."/transient";
-       add_underlay($transientdir);
+       $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 (@) {