]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
Implemented --underlaydir, and moved files provided by underlay out of doc
[ikiwiki.git] / IkiWiki / CGI.pm
index 67bce67952c044d00007471b459bf7ab2fd7cd8a..6fd1f650665bf51461c65fe66a27c46d8e28fdd0 100644 (file)
@@ -403,7 +403,7 @@ sub cgi_editpage ($$) { #{{{
                            ! length $form->field('content')) {
                                my $content="";
                                if (exists $pagesources{lc($page)}) {
-                                       $content=readfile("$config{srcdir}/$pagesources{lc($page)}");
+                                       $content=readfile(srcfile($pagesources{lc($page)}));
                                        $content=~s/\n/\r\n/g;
                                }
                                $form->field(name => "content", value => $content,