The first few lines of ModX code updated to post 2004 standards