Skip to content

Commit

Permalink
Namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Jul 12, 2017
1 parent f1c7112 commit 3a4ad0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libraries/cms/helper/content.php
Expand Up @@ -9,6 +9,8 @@

defined('JPATH_PLATFORM') or die;

use Joomla\Registry\Registry;

/**
* Helper for standard content style extensions.
* This class mainly simplifies static helper methods often repeated in individual components
Expand Down Expand Up @@ -150,7 +152,7 @@ public static function getCurrentLanguage($detectBrowser = true)
if (JLanguageMultilang::isEnabled())
{
$plugin = JPluginHelper::getPlugin('system', 'languagefilter');
$pluginParams = new JRegistry($plugin->params);
$pluginParams = new Registry($plugin->params);

if ((int) $pluginParams->get('lang_cookie', 1) === 1)
{
Expand Down
4 changes: 3 additions & 1 deletion libraries/cms/helper/helper.php
Expand Up @@ -9,6 +9,8 @@

defined('JPATH_PLATFORM') or die;

use Joomla\Registry\Registry;

/**
* Base Helper class.
*
Expand All @@ -33,7 +35,7 @@ public function getCurrentLanguage($detectBrowser = true)
if (JLanguageMultilang::isEnabled())
{
$plugin = JPluginHelper::getPlugin('system', 'languagefilter');
$pluginParams = new JRegistry($plugin->params);
$pluginParams = new Registry($plugin->params);

if ((int) $pluginParams->get('lang_cookie', 1) === 1)
{
Expand Down

0 comments on commit 3a4ad0a

Please sign in to comment.