remove old style array()
This commit is contained in:
parent
f0b8e1ed02
commit
336eb346a7
@ -9,17 +9,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
namespace KW4NZ\Component\Depot\Administrator\Model;
|
namespace KW4NZ\Component\Depot\Administrator\Model;
|
||||||
|
|
||||||
use Joomla\CMS\MVC\Model\AdminModel;
|
use Joomla\CMS\MVC\Model\AdminModel;
|
||||||
|
|
||||||
\defined('_JEXEC') or die;
|
\defined('_JEXEC') or die;
|
||||||
|
|
||||||
class PartModel extends AdminModel
|
class PartModel extends AdminModel
|
||||||
{
|
{
|
||||||
public function getForm($data = array(), $loadData = true)
|
public function getForm($data = [], $loadData = true)
|
||||||
{
|
{
|
||||||
$form = $this->loadForm('com_depot.part',
|
$form = $this->loadForm('com_depot.part', 'part', ['control' => 'jform', 'load_data' => $loadData]);
|
||||||
'part', array('control' => 'jform',
|
|
||||||
'load_data' => $loadData));
|
|
||||||
|
|
||||||
if (empty($form)) {
|
if (empty($form)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user