From fcbeb48a49d9e546f19fcf2e63db326c1d09985d Mon Sep 17 00:00:00 2001 From: zero-24 Date: Wed, 1 Apr 2015 23:21:52 +0200 Subject: [PATCH] Update script.php --- src/com_weblinks/admin/script.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com_weblinks/admin/script.php b/src/com_weblinks/admin/script.php index 45a6a5c..59f8abe 100644 --- a/src/com_weblinks/admin/script.php +++ b/src/com_weblinks/admin/script.php @@ -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(*);