function getMsgTemplate($name) { global $ost; if ($tpl = EmailTemplate::lookupByName($this->getId(), $name, $this)) { return $tpl; } if ($tpl = EmailTemplate::fromInitialData($name, $this)) { return $tpl; } $ost->logWarning(_S('Template Fetch Error'), sprintf(_S('Unable to fetch "%1$s" template - id #%d'), $name, $this->getId())); return false; }
function getMsgTemplate($name) { global $ost; if ($tpl = EmailTemplate::lookupByName($this->getId(), $name, $this)) { return $tpl; } if ($tpl = EmailTemplate::fromInitialData($name, $this)) { return $tpl; } $ost->logWarning('Template Fetch Error', "Unable to fetch '{$name}' template - id #" . $this->getId()); return false; }