mark global function getTemplateDir as deprecated
allow gallery to work without local controller