Clean up SQL query in script

This commit is contained in:
George Wilson 2015-05-18 14:42:13 +01:00
parent a8da38ee67
commit f6b614c6ad
1 changed files with 3 additions and 3 deletions

View File

@ -99,9 +99,9 @@ class Com_WeblinksInstallerScript
// Get the type ID for a Weblink
$query = $db->getQuery(true);
$query->select($db->quoteName('type_id'));
$query->from($db->quoteName('#__content_types'));
$query->where($db->quoteName('type_alias') . ' = ' . $db->quote('com_weblinks.weblink'));
$query->select($db->quoteName('type_id'))
->from($db->quoteName('#__content_types'))
>where($db->quoteName('type_alias') . ' = ' . $db->quote('com_weblinks.weblink'));
$db->setQuery($query);
$weblinkTypeId = $db->loadResult();