Simply constructor (take 2)

https://github.com/joomla/joomla-cms/pull/3943 was reverted as elvis operators were PHP5.3+ and earlier. This does the same thing but with 5.2 support