Skip to content

Commit

Permalink
Fix preinstall model and form path in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
HLeithner committed May 13, 2018
1 parent 3a13f8f commit 5fa9178
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion installation/src/Model/ChecksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function getForm($view = null)
}

// Get the form.
Form::addFormPath(JPATH_COMPONENT . '/model/forms');
Form::addFormPath(JPATH_COMPONENT . '/forms');

try
{
Expand Down
2 changes: 1 addition & 1 deletion installation/src/Model/LanguagesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function getForm($view = null)
}

// Get the form.
Form::addFormPath(JPATH_COMPONENT . '/model/forms');
Form::addFormPath(JPATH_COMPONENT . '/forms');
Form::addFieldPath(JPATH_COMPONENT . '/model/fields');
Form::addRulePath(JPATH_COMPONENT . '/model/rules');

Expand Down
10 changes: 9 additions & 1 deletion installation/src/View/Preinstall/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ class HtmlView extends DefaultView
*/
protected $options;

/**
* The default model
*
* @var string
* @since 3.0
*/
protected $_defaultModel = 'checks';

/**
* Execute and display a template script.
*
Expand All @@ -39,7 +47,7 @@ class HtmlView extends DefaultView
*/
public function display($tpl = null)
{
$this->options = $this->get('PhpOptions', 'Checks');
$this->options = $this->get('PhpOptions');

return parent::display($tpl);
}
Expand Down

0 comments on commit 5fa9178

Please sign in to comment.