Index: branches/5.0.x/core/kernel/nparser/nparser.php =================================================================== diff -u -r12117 -r12229 --- branches/5.0.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 12117) +++ branches/5.0.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 12229) @@ -1,6 +1,6 @@ CheckTemplate($t, $silent); if (!$pre_parsed) return false; $backup_template = $this->TemplateName; Index: branches/5.0.x/core/kernel/parser/template.php =================================================================== diff -u -r12202 -r12229 --- branches/5.0.x/core/kernel/parser/template.php (.../template.php) (revision 12202) +++ branches/5.0.x/core/kernel/parser/template.php (.../template.php) (revision 12229) @@ -1,6 +1,6 @@ GetRealFilename( strtolower($filename) ); - if (!preg_match('/\.tpl$/', $real_file)) { + if (substr($real_file, -4) != '.tpl') { + // add ".tpl" file extension, when not specified in template name $real_file .= '.tpl'; } + return file_exists($real_file); }