diff --git a/components/com_config/model/form.php b/components/com_config/model/form.php index fa3f1f157b304..3886ae858357e 100644 --- a/components/com_config/model/form.php +++ b/components/com_config/model/form.php @@ -153,6 +153,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear = // Get the form. // Register the paths for the form -- failing here $paths = new SplPriorityQueue; + $paths->insert(JPATH_COMPONENT_ADMINISTRATOR . '/model/form', 'normal'); + $paths->insert(JPATH_COMPONENT_ADMINISTRATOR . '/model/field', 'normal'); $paths->insert(JPATH_COMPONENT . '/model/form', 'normal'); $paths->insert(JPATH_COMPONENT . '/model/field', 'normal'); $paths->insert(JPATH_COMPONENT . '/model/rule', 'normal'); @@ -165,6 +167,8 @@ protected function loadForm($name, $source = null, $options = array(), $clear = // Solution until JForm supports splqueue JForm::addFormPath(JPATH_COMPONENT . '/models/forms'); JForm::addFieldPath(JPATH_COMPONENT . '/models/fields'); + JForm::addFormPath(JPATH_COMPONENT_ADMINISTRATOR . '/model/form'); + JForm::addFieldPath(JPATH_COMPONENT_ADMINISTRATOR . '/model/field'); JForm::addFormPath(JPATH_COMPONENT . '/model/form'); JForm::addFieldPath(JPATH_COMPONENT . '/model/field');