init smarty plugin
Dieser Commit ist enthalten in:
Ursprung
4e6a3f351e
Commit
070c1df72d
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<plugin>
|
<plugin>
|
||||||
<general active="1">
|
<general active="1">
|
||||||
<plugin_name>Smarty Wrapper</plugin_name>
|
<plugin_name>Smarty Wrapper</plugin_name>
|
||||||
|
@ -15,5 +15,5 @@
|
||||||
<requirements php="5.6">
|
<requirements php="5.6">
|
||||||
<conlite minversion="2.0" />
|
<conlite minversion="2.0" />
|
||||||
</requirements>
|
</requirements>
|
||||||
<contenido />
|
<conlite />
|
||||||
</plugin>
|
</plugin>
|
|
@ -67,7 +67,7 @@ class cSmartyFrontend {
|
||||||
|
|
||||||
self::$oSmarty = new cSmartyWrapper();
|
self::$oSmarty = new cSmartyWrapper();
|
||||||
self::$aDefaultPaths = array(
|
self::$aDefaultPaths = array(
|
||||||
'template_dir' => $aClientCfg['module']['path'],
|
'template_dir' => $aClientCfg['tpl']['path'],
|
||||||
'cache_dir' => $aClientCfg['cache']['path'] . 'templates_c',
|
'cache_dir' => $aClientCfg['cache']['path'] . 'templates_c',
|
||||||
'compile_dir' => $aClientCfg['cache']['path'] . 'templates_c'
|
'compile_dir' => $aClientCfg['cache']['path'] . 'templates_c'
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
|
defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
|
||||||
|
rereadClients();
|
||||||
$client = (isset($client)) ? $client : $load_client;
|
$client = (isset($client)) ? $client : $load_client;
|
||||||
|
|
||||||
// Load smarty
|
// Load smarty
|
||||||
if (!defined('SMARTY_DIR')) {
|
if (!defined('SMARTY_DIR')) {
|
||||||
define('SMARTY_DIR', cRegistry::getConfigValue('path', 'conlite')
|
define('SMARTY_DIR', cRegistry::getConfigValue('path', 'conlite')
|
||||||
|
|
Laden…
In neuem Issue referenzieren