30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-09-27 20:49:05 +00:00

Update script.php

This commit is contained in:
zero-24 2015-04-01 23:21:52 +02:00
parent a80cfc7730
commit fcbeb48a49

View File

@ -68,12 +68,15 @@ class Com_WeblinksInstallerScript
$category->rebuildPath($category->id);
}
}
/**
* method to update the component
* method to run after an install/downloads/uninstall method
*
* @return void
*
* @since 3.4.1
*/
function update($parent)
function postflight($type, $parent)
{
$tasks = array(
'0' => 'sid',
@ -84,7 +87,7 @@ class Com_WeblinksInstallerScript
foreach $tasks as $column)
{
$db = JFactory::getDbo();
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select(*);