Skip to content

Commit

Permalink
The JPATH_ constants are not magic strings (#21151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker authored and wilsonge committed Jul 19, 2018
1 parent 7279924 commit 3d713fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_contact/models/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function getTable($type = 'Contact', $prefix = 'ContactTable', $config =
*/
public function getForm($data = array(), $loadData = true)
{
JForm::addFieldPath('JPATH_ADMINISTRATOR/components/com_users/models/fields');
JForm::addFieldPath(JPATH_ADMINISTRATOR . '/components/com_users/models/fields');

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

0 comments on commit 3d713fe

Please sign in to comment.