Index: trunk/core/kernel/parser/template.php
===================================================================
diff -u -N -r7635 -r8358
--- trunk/core/kernel/parser/template.php (.../template.php) (revision 7635)
+++ trunk/core/kernel/parser/template.php (.../template.php) (revision 8358)
@@ -39,7 +39,7 @@
function LoadTemplate($silent = 0)
{
$filename = $this->GetFullPath();
- if(file_exists($filename)) {
+ if (file_exists($filename)) {
if (filesize ($filename) == 0) {
trigger_error("Template file size is 0: $filename", ($silent ? E_USER_NOTICE : E_USER_ERROR) );
}
@@ -52,12 +52,12 @@
return true;
}
else {
- if ($silent != 2) {
+ if (($silent != 2) && !$silent) {
$application =& kApplication::Instance();
if ($application->isDebugMode()) {
$application->Debugger->appendTrace();
}
- trigger_error("File or block not found: $filename at ".$application->Parser->TemplateName, ($silent ? E_USER_NOTICE : E_USER_ERROR) );
+ trigger_error('File or block not found: '.$filename.' at '.$application->Parser->TemplateName, E_USER_ERROR);
}
return false;
}