Revert code changes for MantisBT 1.3.x