}
$tplPackageID = $this->getPackageID($templateName, $packageID);
- $compiledFilename = $this->getCompiledFilename($templateName, $tplPackageID);
+ $compiledFilename = $this->getCompiledFilename($templateName, $packageID);
$sourceFilename = $this->getSourceFilename($templateName, $tplPackageID);
// check if compilation is necessary
* @return string
*/
public function getTemplateListenerCode($templateName, $eventName) {
+ $this->loadTemplateListenerCode($templateName);
+
if (isset($this->templateListeners[$templateName][$eventName])) {
return implode("\n", $this->templateListeners[$templateName][$eventName]);
}