* Small changes for compatibility with old MODX versions.