mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-04 18:28:25 +00:00
Clean up SQL query in script
This commit is contained in:
parent
a8da38ee67
commit
f6b614c6ad
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user