init smarty plugin

Dieser Commit ist enthalten in:
Oldperl 2018-01-10 07:48:53 +00:00
Ursprung dc7313967d
Commit 405b3d9fe3
3 geänderte Dateien mit 4 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<general active="1">
<plugin_name>Smarty Wrapper</plugin_name>
@ -15,5 +15,5 @@
<requirements php="5.6">
<conlite minversion="2.0" />
</requirements>
<contenido />
<conlite />
</plugin>

Datei anzeigen

@ -67,7 +67,7 @@ class cSmartyFrontend {
self::$oSmarty = new cSmartyWrapper();
self::$aDefaultPaths = array(
'template_dir' => $aClientCfg['module']['path'],
'template_dir' => $aClientCfg['tpl']['path'],
'cache_dir' => $aClientCfg['cache']['path'] . 'templates_c',
'compile_dir' => $aClientCfg['cache']['path'] . 'templates_c'
);

Datei anzeigen

@ -1,9 +1,8 @@
<?php
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
rereadClients();
$client = (isset($client)) ? $client : $load_client;
// Load smarty
if (!defined('SMARTY_DIR')) {
define('SMARTY_DIR', cRegistry::getConfigValue('path', 'conlite')