/
Optimize theme/language detection [5.2.2-B1]
Optimize theme/language detection [5.2.2-B1]
Currently language/theme ID detection in the "getPassedID
" method works like this:
- if ID provided in URL, then use it
- if ID isn't provided in URL, then use "default" word
- set above detected ID back to URL
- call parent class "getPassedID" method what would basically just get that ID back from URL
Clearly the last step isn't required, because ID is already known at that point.
Solution
Immediately return detected ID of language/theme from "getPassedID
" method.