Small layout and compliance updates
This commit is contained in:
parent
fe9ecfad73
commit
45ca500cc3
6 changed files with 66 additions and 40 deletions
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue