removing refs to PHP in core/templates