From 895e91fb88b8686addf37f9dd0304fafaac077b9 Mon Sep 17 00:00:00 2001 From: Andy Adiwidjaja Date: Fri, 14 Jun 2013 12:47:20 +0200 Subject: [PATCH] Silverstripe 3.1 compatibility. --- code/SiteTreeImporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/SiteTreeImporter.php b/code/SiteTreeImporter.php index e1c1aa2..aacb222 100644 --- a/code/SiteTreeImporter.php +++ b/code/SiteTreeImporter.php @@ -50,11 +50,11 @@ function Content() { } function Form() { - return new Form($this, "Form", new FieldSet( + return new Form($this, "Form", new FieldList( new FileField("SourceFile", "Tab-delimited file"), new CheckboxField("DeleteExisting", "Clear out all existing content?"), new CheckboxField("PublishAll", "Publish everything after the import?") - ), new FieldSet( + ), new FieldList( new FormAction("bulkimport", "Import pages") )); }