mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-13 00:11:14 +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);
|
->order($order);
|
||||||
|
|
||||||
// Filter by language.
|
// Filter by language.
|
||||||
if (JFactory::getApplication()->isSite() && JLanguageMultilang::isEnabled())
|
if (JFactory::getApplication()->isClient('site') && JLanguageMultilang::isEnabled())
|
||||||
{
|
{
|
||||||
$tag = JFactory::getLanguage()->getTag();
|
$tag = JFactory::getLanguage()->getTag();
|
||||||
$query->where('a.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')')
|
$query->where('a.language in (' . $db->quote($tag) . ',' . $db->quote('*') . ')')
|
||||||
|
Loading…
Reference in New Issue
Block a user