Skip to content

Commit

Permalink
Remove the deprecated code in the MultilangstatusHelper class (#22301)
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo authored and wilsonge committed Sep 23, 2018
1 parent ad6d622 commit d8cf49f
Showing 1 changed file with 0 additions and 50 deletions.
Expand Up @@ -83,56 +83,6 @@ public static function getContentlangs()
return $db->loadObjectList();
}

/**
* Method to return a list of published site languages.
*
* @return array of language extension objects.
*
* @deprecated 4.0 Use LanguageHelper::getInstalledLanguages(0) instead.
*/
public static function getSitelangs()
{
try
{
Log::add(
sprintf('%s() is deprecated, use LanguageHelper::getInstalledLanguages(0) instead.', __METHOD__),
Log::WARNING,
'deprecated'
);
}
catch (\RuntimeException $exception)
{
// Informational log only
}

return LanguageHelper::getInstalledLanguages(0);
}

/**
* Method to return a list of language home page menu items.
*
* @return array of menu objects.
*
* @deprecated 4.0 Use Multilanguage::getSiteHomePages() instead.
*/
public static function getHomepages()
{
try
{
Log::add(
sprintf('%s() is deprecated, use LanguageHelper::getSiteHomePages() instead.', __METHOD__),
Log::WARNING,
'deprecated'
);
}
catch (\RuntimeException $exception)
{
// Informational log only
}

return Multilanguage::getSiteHomePages();
}

/**
* Method to return combined language status.
*
Expand Down

0 comments on commit d8cf49f

Please sign in to comment.