Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Sep 13, 2016
1 parent b39ada2 commit 3636f2a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/com_modules/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@
defined('_JEXEC') or die;

// Load the required admin language files
$lang = JFactory::getLanguage();
$lang = JFactory::getLanguage();
$app = JFactory::getApplication();
$config = array();
$lang->load('joomla', JPATH_ADMINISTRATOR);
$lang->load('com_modules', JPATH_ADMINISTRATOR);

if ($app->input->get('task') === 'module.orderPosition')
{
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
}

// Trigger the controller
$controller = JControllerLegacy::getInstance('Modules');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller = JControllerLegacy::getInstance('Modules', $config);
$controller->execute($app->input->get('task'));
$controller->redirect();

0 comments on commit 3636f2a

Please sign in to comment.