Skip to content

Commit

Permalink
Get the minimum stability information from com_installer (#34772)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Jul 25, 2021
1 parent adc8982 commit 06891aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion administrator/components/com_joomlaupdate/models/default.php
Expand Up @@ -1728,9 +1728,12 @@ private function getCollectionDetailsUrls($updateSiteInfo, $joomlaTargetVersion)
*/
private function checkCompatibility($updateFileUrl, $joomlaTargetVersion)
{
// Get the minimum stability information from com_installer
$minimumStability = JComponentHelper::getParams('com_installer')->get('minimum_stability', JUpdater::STABILITY_STABLE);

$update = new JUpdate;
$update->set('jversion.full', $joomlaTargetVersion);
$update->loadFromXML($updateFileUrl);
$update->loadFromXML($updateFileUrl, $minimumStability);

$downloadUrl = $update->get('downloadurl');

Expand Down

0 comments on commit 06891aa

Please sign in to comment.