Small layout and compliance updates

This commit is contained in:
genuineparts 2025-06-25 11:10:16 +02:00
parent fe9ecfad73
commit 45ca500cc3
6 changed files with 66 additions and 40 deletions

View file

@ -26,28 +26,31 @@ $module["module"]["ver"]="0.3.0";
use Smarty\Smarty;
class ajax_module {
public $uses_default_templates=FALSE;
class ajax_module
{
function __construct() {
global $log,$config,$tpl,$db,$task,$plugin;
public $uses_default_templates = FALSE;
function __construct()
{
global $log, $config, $tpl, $db, $task, $plugin;
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
$this->tpl= new Smarty();
$this->tpl = new Smarty();
$this->tpl->setCompileDir($root . '/core/template/templates_c');
$this->tpl->setCacheDir($root . '/core/template/cache');
$this->tpl->setConfigDir($root . '/core/template/config');
If($config["caching"]==1){
if ($config["caching"] == 1) {
$this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED);
}
$this->tpl->assign("path",$config["path"]."/");
$this->tpl->assign("path", $config["path"] . "/");
}
function __destruct() {
function __destruct()
{
}
function meta() {
function meta()
{
}
}
?>
}