nextend/joomla-cms — pull request #1 by Hackwar (2014-03-02 19:17:43+00:00)
Title: A little bit better solution

Since this code is identical in both cases, we can merge this into this one case after the if-clause.