game/onyx2/modules/templates/main.php
Nigel dd61d3b66b
All checks were successful
continuous-integration/drone/push Build is passing
Ajout d'une étape de linting dans DroneCi (#3)
Corrige un doublons laissé par le rebase semi-manuel

Ajout d'une étape de linting dans DroneCi

Fix linting

Co-authored-by: Nigel Sheldon <nigelsheldon@live.fr>
Reviewed-on: https://gitea.nemunai.re/halo-battle/game/pulls/3
2020-11-21 18:54:32 +00:00

30 lines
689 B
PHP

<?php
if (!defined('ONYX')) {
exit;
}
define('SMARTY_DIR', ONYX.'modules/templates/smarty/');
require_once(SMARTY_DIR."Smarty.class.php");
define('_TEMPLATE_DIR', ONYX.'tpl/'.$OPT['tpl'].'/');
define('_TEMPLATE_COMPILE', ONYX.$OPT['compile']);
define('_TEMPLATE_CONFIG', ONYX.$OPT['config']);
define('_TEMPLATE_CACHE', ONYX.$OPT['cache']);
class Template extends Smarty
{
public $template_dir = _TEMPLATE_DIR;
public $compile_dir = _TEMPLATE_COMPILE;
public $config_dir = _TEMPLATE_CONFIG;
public $cache_dir = _TEMPLATE_CACHE;
public $compile_check = false;
public $force_compile = true;
public function set_template($i = null)
{
}
}