From beba8d31532b898e849aabe336d935e9f0a8a4a2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 12 Apr 2012 11:56:25 +0200 Subject: [PATCH] MINOR Using new late static binding create() logic --- code/BasicFieldsTestPage.php | 8 ++++---- code/RelationFieldsTestPage.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/BasicFieldsTestPage.php b/code/BasicFieldsTestPage.php index 1e35d99..66d9cb7 100644 --- a/code/BasicFieldsTestPage.php +++ b/code/BasicFieldsTestPage.php @@ -105,10 +105,10 @@ class BasicFieldsTestPage extends TestPage { $dateTimeShowCalendar->getTimeField()->setConfig('showdropdown', true); $fields->addFieldsToTab('Root.File', array( - FormField::create('UploadField', 'File','FileUploadField'), - FormField::create('UploadField', 'Image','ImageUploadField'), - FormField::create('UploadField', 'HasManyFiles','HasManyFilesUploadField'), - FormField::create('UploadField', 'ManyManyFiles','ManyManyFilesUploadField') + UploadField::create('File','FileUploadField'), + UploadField::create('Image','ImageUploadField'), + UploadField::create('HasManyFiles','HasManyFilesUploadField'), + UploadField::create('ManyManyFiles','ManyManyFilesUploadField') )); $tabs = array('Root.Text', 'Root.Numeric', 'Root.Option', 'Root.DateTime', 'Root.File'); diff --git a/code/RelationFieldsTestPage.php b/code/RelationFieldsTestPage.php index 6bac03b..016375a 100644 --- a/code/RelationFieldsTestPage.php +++ b/code/RelationFieldsTestPage.php @@ -23,9 +23,9 @@ class RelationFieldsTestPage extends TestPage { ); $fields->addFieldsToTab('Root.Tree', array( - Object::create('TreeDropdownField', 'HasOnePage', 'HasOnePage', 'SiteTree'), - Object::create('TreeMultiselectField', 'HasManyPages', 'HasManyPages', 'SiteTree'), - Object::create('TreeMultiselectField', 'ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true) + TreeDropdownField::create('HasOnePage', 'HasOnePage', 'SiteTree'), + TreeMultiselectField::create('HasManyPages', 'HasManyPages', 'SiteTree'), + TreeMultiselectField::create('ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true) )); // $fields->addFieldToTab("Root.Tests.ComplexTableField",