Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Joomla! Update: reinstall Joomla! and Update & Install features | seccond try #9612
Pull Request for Issue #9469.
Summary of Changes
Added features to Joomla! Update:
Please notice that as the 3.5.0 stable package don't include the changes here the new overview is gone for now. But if you follow the seccond test it come back
For the code reviewer
The changes between the code by @nikosdion and me can be found here: nikosdion/joomla-cms@feature/joomlaupdate-reinstall...zero-24:feature/joomlaupdate-reinstall
Some other things
The needed update xml for com_joomlaupdate can be found here: joomla/update.joomla.org#6
The com_joomlaupdate package can be found here (it is the same as on my server for updating):
Limitations of using the com_joomlaupdate standalone. (edit)
You can't use the reinstall feature as the standalone package don't update the updater lib file please see: #9612 (comment)
Refactored JUpdater, made it possible to record the current version of an extension into the #__updates table
When JUpdater::findUpdates has four (or more) parameters we can use the reinstall support by passing true in the fourth parameter (includeCurrent). Otherwise we have to call findUpdates with three parameters which only gives us available updates. This is necessary since Joomla! Update can run under older Joomla! 3.x releases, most notably 3.4, which lack the reinstall support.
While the FTP credentials were applied, the file write method was ignored. That explains why a buch of users reported that Joomla! Update didn't work for them. Since the included restore.php supports the Hybrid file write mode (direct file writes where possible, FTP only when the file is unwriteable) I added that option as well.
* Missing token * Typo in JoomlaupdateControllerUpdate::captive() * We must store the base name, not the full path to the captive file
The "standalone" component is exactly what we ship in the CMS right now - you can generate the standalone package by running this script https://github.com/joomla/joomla-cms/blob/staging/build.xml#L142 - I haven't had time to do it myself yet so i can't link you to a package
No it will be in core but by making it something that can be installed it
On 7 April 2016 at 22:11, Kevin Griffiths firstname.lastname@example.org wrote: