Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Mar 5, 2018
1 parent 351d80f commit 7e1ba02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/src/Helper/ModuleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\LanguageHelper;
use Joomla\CMS\MVC\Factory\MVCFactoryFactoryInterface;
use Joomla\Registry\Registry;

/**
Expand Down Expand Up @@ -145,7 +143,7 @@ public static function renderModule($module, $attribs = array())
{
static $chrome;

$app = Factory::getApplication();
$app = \JFactory::getApplication();

// Check that $module is a valid module object
if (!is_object($module) || !isset($module->module) || !isset($module->params))
Expand Down Expand Up @@ -186,7 +184,7 @@ public static function renderModule($module, $attribs = array())
// Load the module
if (file_exists($path))
{
$lang = Factory::getLanguage();
$lang = \JFactory::getLanguage();

$coreLanguageDirectory = JPATH_BASE;
$extensionLanguageDirectory = dirname($path);
Expand Down

0 comments on commit 7e1ba02

Please sign in to comment.