Bug fix in the custom import option.
This commit is contained in:
parent
e7572e0557
commit
0fd9d9d169
@ -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');
|
||||
|
@ -49,7 +49,7 @@ class ###Component###Model###View### extends JModelLegacy
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_context = 'com_###component###.import';
|
||||
protected $_context = 'com_###component###.###view###';
|
||||
|
||||
/**
|
||||
* Import Settings
|
||||
|
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user