Simplified version, always fire onInstallerBeforeDownloadPackage event
before downloading a package
Even simpler, removed unused params
Restored mistakenly removed comments from original Joomla! code
Merge branch 'staging' into auth_update
Update joomla.sql

Fix default value for the parameter guest_usergroup. This fix could be treated as security fix - if site has wrong value for the guest usergroup (13) and site already has the usergroup with such ID with administrator permissions - all of them would be administrators.
Update joomla.sql

Fix incorrect default value for guest_usergroup for PostgreSQL
Update joomla.sql

Fix incorrect default value for guest_usergroup for SQL Server
Query-fix in com_content article modal

This change prevents the query from being executed when the value is 0. There is never an article with ID 0 and especially when there are more than one modal select per page, you have several unnecessary queries.
Two factor authentication on front-end

When two factor authentication is enabled and in all plugins it is set to use it only in back-end then in front-end secret key field should be hidden in users component as in login module.
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=33153
Update view.html.php
Add support for checking minimum PHP version in XML update stream

This introduces a <php_minimum> tag which should indicate the minimum supported PHP version of an extension
Optimize version_compare check, thanks @dongilbert
Add message if an update is available but unsupported
Install files
Update files
Changing the router helpers to allow active menu item being selected if it matches current language
If the needle doesn't contain a language or the language is set to "All", return the active menuitem
# [33157] Missing metadata.xml in com_content view Categories causes item_type to receive untranslated fallback value
Merge pull request #2816 from Bakual/FixRouterHelper

Wrong menu item id is assigned to article links when language filter enabled.
Content Languages: prevetn saving White space for url language code and
Language Tag