Index: /branches/release-40/php/lib/MTViewer.php
===================================================================
--- /branches/release-40/php/lib/MTViewer.php (revision 2333)
+++ /branches/release-40/php/lib/MTViewer.php (revision 2636)
@@ -414,5 +414,6 @@
                 $fntag = 'smarty_function_mt'.$tag;
                 if (!function_exists($fntag))
-                    @include_once("function.mt$tag.php");
+                  if (file_exists($this->mt->config['phplibdir']."/function.mt$tag.php"))
+                        @include_once("function.mt$tag.php");
                 if (function_exists($fntag))
                     $hdlr = $fntag;
@@ -421,5 +422,6 @@
                 $fntag = 'smarty_block_mt'.$tag;
                 if (!function_exists($fntag))
-                    @include_once("block.mt$tag.php");
+                    if (file_exists($this->mt->config['phplibdir']."/block.mt$tag.php"))
+                        @include_once("block.mt$tag.php");
                 if (function_exists($fntag)) {
                     $hdlr = $fntag;
