Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Remove the deprecated code in the MultilangstatusHelper class #22301

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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()
Copy link
Contributor

@wilsonge wilsonge Sep 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still being used by the com_languages admin view

{
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