Correct default template handler function example.

This commit is contained in:
boots
2007-02-06 18:32:32 +00:00
parent ed2fdb7539
commit a9ca05f90a

View File

@@ -217,8 +217,8 @@ function make_template ($resource_type, $resource_name, &$template_source, &$tem
if ( ! is_readable ( $resource_name )) {
// create the template file, return contents.
$template_source = "This is a new template.";
$template_timestamp = time();
$smarty_obj->_write_file($resource_name,$template_source);
require_once SMARTY_CORE_DIR . 'core.write_file.php';
smarty_core_write_file( array( 'filename'=>$smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 'contents'=>$template_source ), $smarty_obj );
return true;
}
} else {