Updated component for newer MODX versions