mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 06:09:09 +00:00
18 lines
421 B
PHP
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';
|
|
}
|
|
}
|
|
?>
|