Skip to content

Commit b99e42e

Browse files
author
Michael Babker
committed
The JPATH_ constants are not magic strings
1 parent 7279924 commit b99e42e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

administrator/components/com_contact/models/contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function getTable($type = 'Contact', $prefix = 'ContactTable', $config =
267267
*/
268268
public function getForm($data = array(), $loadData = true)
269269
{
270-
JForm::addFieldPath('JPATH_ADMINISTRATOR/components/com_users/models/fields');
270+
JForm::addFieldPath(JPATH_ADMINISTRATOR . '/components/com_users/models/fields');
271271

272272
// Get the form.
273273
$form = $this->loadForm('com_contact.contact', 'contact', array('control' => 'jform', 'load_data' => $loadData));

0 commit comments

Comments
 (0)