mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 13:57:51 +00:00
17 lines
372 B
PHP
17 lines
372 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';
|
|
}
|
|
}
|
|
?>
|