Created originally on Bitbucket by flaper87 (Flavio Percoco)
Was already merged in Bitbucket before import, marked as merged by the import user
After splitting _levelNames dictionary into 2 separate dicts, the getLevelName function stopped returning the level's integer value when the level's name is passed as argument. This patch restores that behavior.
Fixes bug: 1517