private function setTemplatePath($templateName) { $path = $this->config->getSystemUITemplatesLocation(); $et = new EasyTemplate($path); // If there isn't a template that is system specific, template should exist in WAP templates if (!$et->template_exists($templateName)) { $path = $this->config->getWAPUITemplatesLocation(); } EasyTemplate::set_path($path); }