wesnoth/utils/tests/include/WesnothSmarty.php
2008-08-09 19:59:06 +00:00

18 lines
421 B
PHP

<?php
global $smarty_dir;
require($smarty_dir . 'libs/Smarty.class.php');
class WesnothSmarty extends Smarty {
function __construct($work_dir)
{
parent::__construct();
$this->template_dir = $work_dir . '/templates';
$this->compile_dir = $work_dir . '/templates_c';
$this->cache_dir = $work_dir . '/cache';
$this->config_dir = $work_dir . '/configs';
$this->plugins_dir[] = $work_dir . '/plugins';
}
}
?>