Fixed the bug for the image display on install, it was missing the component name.

This commit is contained in:
2016-03-04 19:26:18 +02:00
parent ef8578104c
commit 21756c3e55
6 changed files with 13 additions and 10 deletions

View File

@ -1417,14 +1417,14 @@ class com_componentbuilderInstallerScript
// Condition.
$conditions = array(
$db->quoteName('element') . ' = ' . $db->quote('com_')
$db->quoteName('element') . ' = ' . $db->quote('com_componentbuilder')
);
$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);
$db->setQuery($query);
$allDone = $db->execute();
echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder">
<img src="components/com_/assets/images/component-300.png"/>
<img src="components/com_componentbuilder/assets/images/component-300.png"/>
</a>';
}
// do any updates needed