Call properly get_template() as the var is template and is private

The $template variable is with a small 'T' and is private, so the valid way is calling get_template() (otherwise causing issues in some configurations and versions of PHP)