summaryrefslogtreecommitdiff
path: root/.library/IkiWiki/Plugin/fill_empty_page.pm
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-08-30 11:18:51 +0200
committerThomas Schwinge <tschwinge@gnu.org>2007-08-30 12:02:26 +0200
commit5501e73b8597c144049bff0b594e4767fe8ddd1e (patch)
tree10d75205ba45ba7b3dc8446fd0b7b9e30fc235f6 /.library/IkiWiki/Plugin/fill_empty_page.pm
parent3a074569abe0f687ee6b211516c895f5ef1aa158 (diff)
fill_empty_page.pm: Make it works as expected.
The previousversion would agagin overwrite the content of the page with the template's content as soon as the page is being saved or previewed.
Diffstat (limited to '.library/IkiWiki/Plugin/fill_empty_page.pm')
-rw-r--r--.library/IkiWiki/Plugin/fill_empty_page.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/.library/IkiWiki/Plugin/fill_empty_page.pm b/.library/IkiWiki/Plugin/fill_empty_page.pm
index 30396438..b2ce1fc0 100644
--- a/.library/IkiWiki/Plugin/fill_empty_page.pm
+++ b/.library/IkiWiki/Plugin/fill_empty_page.pm
@@ -43,6 +43,8 @@ sub formbuilder_setup
return if $form->title ne "editpage";
return if $form->field("do") ne "create";
+ return if defined $form->field ("editcontent");
+
# This is obviously not the last conclusion of wisdom.
my $empty_page_page = bestlink ($page, "empty_page") || return;
my $empty_page_file = $pagesources {$empty_page_page} || return;