AAAAhome/academiac/www/libraries/joomla/html/html/contentlanguage.php 0000644 00000003240 15137261401 0021242 0 ustar 00 getQuery(true);
// Build the query.
$query->select('a.lang_code AS value, a.title AS text, a.title_native');
$query->from('#__languages AS a');
$query->where('a.published >= 0');
$query->order('a.title');
// Set the query and load the options.
$db->setQuery($query);
self::$items = $db->loadObjectList();
if ($all)
{
array_unshift(self::$items, new JObject(array('value' => '*', 'text' => $translate ? JText::alt('JALL', 'language') : 'JALL_LANGUAGE')));
}
// Detect errors
if ($db->getErrorNum())
{
JError::raiseWarning(500, $db->getErrorMsg());
}
}
return self::$items;
}
}