Proper Joomla! 3.1.1 compatibility - Issue #34

Signed-off-by: Eric Fernance <beanie@purplebeanie.com>