Source for file multilang.php
Documentation is available at multilang.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Utitlity class for multilang
* @package Joomla.Libraries
* Method to determine if the language filter plugin is enabled.
* This works for both site and administrator.
* @return boolean True if site is supporting multiple languages; false otherwise.
// Flag to avoid doing multiple database queries.
// Status of language filter plugin.
// Get application object.
$app =
JFactory::getApplication();
// If being called from the front-end, we can avoid the database query.
$enabled =
$app->getLanguageFilter();
// If already tested, don't test again.
// Determine status of language filter plug-in.
$db =
JFactory::getDbo();
$query =
$db->getQuery(true)
->from($db->quoteName('#__extensions'))
->where($db->quoteName('type') .
' = ' .
$db->quote('plugin'))
->where($db->quoteName('folder') .
' = ' .
$db->quote('system'))
->where($db->quoteName('element') .
' = ' .
$db->quote('languagefilter'));
$enabled =
$db->loadResult();
Documentation generated on Tue, 19 Nov 2013 15:09:03 +0100 by phpDocumentor 1.4.3