I would strongly recommend to upgrade, rather to hack code of a very, very, very, very old version of Limesurvey that is not supported anymore and has not received security updates in a long time.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.