diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-08-30 11:18:51 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-08-30 12:02:26 +0200 |
commit | 5501e73b8597c144049bff0b594e4767fe8ddd1e (patch) | |
tree | 10d75205ba45ba7b3dc8446fd0b7b9e30fc235f6 /.library | |
parent | 3a074569abe0f687ee6b211516c895f5ef1aa158 (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')
-rw-r--r-- | .library/IkiWiki/Plugin/fill_empty_page.pm | 2 |
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; |