mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-12 16:01:40 +00:00
Replace deprecated isSite() (#286)
This commit is contained in:
parent
e54849f018
commit
4b7480f54a
@ -183,7 +183,7 @@ class PlgSearchWeblinks extends JPlugin
|
||||
->order($order);
|
||||
|
||||
// Filter by language.
|
||||
if (JFactory::getApplication()->isSite() && JLanguageMultilang::isEnabled())
|
||||
if (JFactory::getApplication()->isClient('site') && JLanguageMultilang::isEnabled())
|
||||
{
|
||||
$tag = JFactory::getLanguage()->getTag();
|
||||
$query->where('a.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')')
|
||||
|
Loading…
Reference in New Issue
Block a user