Joomla auto update for commercial component

by user1616338   Last Updated August 21, 2018 09:10 AM - source

I can't figure out how to download the correct file using Joomla auto update.

I need to control the file based on keys so that I can implement the paid for bit of my component.

I could easily do this in the component but I'm keen to stick with the Joomla system but there is a lack of good docs.

I've gone through the Joomla code and the part that applies is:

        echo "extra query is ".$extra_query;
        echo"<br>url is ".$url;

this shows the URL that Joomla is directed to to get the install package (echo is my debug code :)

http://download.abc.com/?ext=addmenu&src=core&pro=1&file=update.zip 


        $p_file = JInstallerHelper::downloadPackage($url);

        // Was the package downloaded?
        if (!$p_file)
        {
            JError::raiseWarning('', JText::sprintf('COM_INSTALLER_PACKAGE_DOWNLOAD_FAILED', $url));
        echo "download failed ".$extra_query;
        echo"<br>url is ".$url;

Which shows the file that was downloaded. I want this to be the package - all this is from model-> update in com_installer.

I want it to download

/mnt/storage/vhosts/newdomain.com/httpdocs/tmp/addmenu-v1.1.4.zip

but it downloads httpdocs/tmp/?dummy.zip&ids=lkjsdafiou2341 - ie the requested file.

What do I need to do?

thanks



Related Questions




What is happened to joomlaman.com?

Updated July 06, 2017 16:10 PM

Joomla auto update

Updated August 19, 2018 21:10 PM

Where to save extension configuration?

Updated February 16, 2017 14:10 PM