Fixes #6300: Deprecated $CONFIG still available in view scripts
Merge pull request #6335 from mrclay/6300

Fixes #6300: Deprecated $CONFIG still available in view scripts