Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial Fix for COM_getLanguageFromURL
Fix for issue #819 - COM_getLanguageFromURL renamed to _getLanguageFromURL. Now should only be called by core - Unfortunately COM_getLanguage needs to get called almost right away when a visitor visits a page. This means if the language is not already set from a previous visit _getLanguageFromURL is required to guess at the language. Code still needs to be added to guess the language id for url_routing - Fix for switch language block to not display if user not allowed to change language. - Added to $_URL class that allows item (like a article or plugin) to set the id for the url and the language. This means no guessing by switch language block anymore - New code for plugins that uses $_URL class to support an item that has multiple languages (like topics, articles, staticpage). This may break multi-language support a bit for any other plugins that support this type of feature
- Loading branch information
1 parent
a1d400c
commit 290b53e
Showing
6 changed files
with
201 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.