Skip to content

Handle PHP error if download url comes back as false#12187

Merged
rdeutz merged 2 commits intostagingfrom
fix-no-language-pack-available
Oct 3, 2016
Merged

Handle PHP error if download url comes back as false#12187
rdeutz merged 2 commits intostagingfrom
fix-no-language-pack-available

Conversation

@wilsonge
Copy link
Copy Markdown
Contributor

@wilsonge wilsonge commented Sep 28, 2016

Summary of Changes

Fix edge case when you are on a Joomla site of a version higher than allowed by a language pack that no download url is available causing a Joomla error

Testing Instructions

Bump the version in the libraries/cms/version/version.php file to 3.8 or higher (4.0 etc). Then try and install a language through the Install Language area in the installer component. Note that a PHP notice will flash up on your screen. Apply patch and no more errors

Documentation Changes Required

None

@wilsonge wilsonge added this to the Joomla 3.6.3 milestone Sep 28, 2016
return false;
}

$package_url = trim($downloadUrlElement->_data);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can remove this variable and direct return the result of trim?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@brianteeman
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on e13a659


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12187.

1 similar comment
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 2, 2016

I have tested this item ✅ successfully on e13a659


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12187.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 2, 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12187.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 2, 2016
@rdeutz rdeutz merged commit faa081e into staging Oct 3, 2016
@zero-24 zero-24 deleted the fix-no-language-pack-available branch October 3, 2016 08:55
@brianteeman
Copy link
Copy Markdown
Contributor

Removed RTC label

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants