Index: trunk/xpressme_integration_kit/include/xpress_templates_make.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_templates_make.php	(revision 777)
+++ trunk/xpressme_integration_kit/include/xpress_templates_make.php	(revision 778)
@@ -77,6 +77,9 @@
 			// generate compiled file
 			include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
-			include_once XOOPS_ROOT_PATH.'/class/template.php' ;
-			include_once XOOPS_ROOT_PATH.'/class/-template.php' ; // xoops3
+			if (file_exists(XOOPS_ROOT_PATH.'/class/template.php')){
+				include_once XOOPS_ROOT_PATH.'/class/template.php' ;
+			} else if (file_exists(XOOPS_ROOT_PATH.'/class/-template.php')){
+				include_once XOOPS_ROOT_PATH.'/class/-template.php' ; // xoops3
+			}
 			if( ! xoops_template_touch( $tplid ) ) {
 				$msg = '<span style="color:#ff0000;">ERROR: Failed compiling template <b>'.htmlspecialchars($file_name).'</b>.</span><br />';
