Skip to content

Commit 34571ac

Browse files
committed
php7.2 support
1 parent fb969e1 commit 34571ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.phpintel/

code/extensions/QuickAddNewExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function updateAttributes(&$attributes) {
126126
// Ignore if not using QuickAddNew
127127
return;
128128
}
129-
// NOTE(Jake): This below comment will be necessary if
129+
// NOTE(Jake): This below comment will be necessary if
130130
// $this->owner->setForm($form); is needed in 'doAddNew'
131131
/*$form = $this->owner->getForm();
132132
if ($this->owner === $form->getController()) {
@@ -180,7 +180,7 @@ public function AddNewFormHTML()
180180
**/
181181
public function doAddNew($data, $form)
182182
{
183-
$obj = Object::create($this->addNewClass);
183+
$obj = SS_Object::create($this->addNewClass);
184184
if (!$obj->canCreate()) {
185185
return Security::permissionFailure(Controller::curr(), "You don't have permission to create this object");
186186
}

0 commit comments

Comments
 (0)