Bug fix in the custom import option.

This commit is contained in:
Llewellyn van der Merwe 2016-05-04 06:51:30 +01:00
parent e7572e0557
commit 0fd9d9d169
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class ###Component###Controller###View### extends JControllerLegacy
// Check for request forgeries
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('import');
$model = $this->getModel('###View###');
if ($model->import())
{
$cache = JFactory::getCache('mod_menu');

View File

@ -49,7 +49,7 @@ class ###Component###Model###View### extends JModelLegacy
*
* @var string
*/
protected $_context = 'com_###component###.import';
protected $_context = 'com_###component###.###view###';
/**
* Import Settings

View File

@ -465,7 +465,7 @@ class ComponentbuilderModelAjax extends JModelList
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.endTabSet'); ?>";
$script['view'][] = "\t\t<input type=\"hidden\" name=\"gettype\" value=\"upload\" />";
$script['view'][] = "<?php endif; ?>";
$script['view'][] = "<input type=\"hidden\" name=\"task\" value=\"import.import\" />";
$script['view'][] = "<input type=\"hidden\" name=\"task\" value=\"import_###-#-#-views###.import\" />";
$script['view'][] = "<?php echo JHtml::_('form.token'); ?>";
$script['view'][] = "</form>";
$script['view'][] = "</div>";