1: <?php
 2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 
15: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: 18: 19: 20: 21: 22: 23: 
24: class Contenido_Backend_SmartyWrapper extends cSmartyBackend {
25: 
26:     public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
27:         cDeprecated("Use the class cSmartyBackend instead.");
28:         parent::__construct($aCfg, $aClientCfg, $bSanityCheck);
29:     }
30: 
31: }
32: 33: 34: 35: 36: 37: 
38: class cSmartyBackend extends cSmartyFrontend {
39: 
40:     public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
41:         parent::__construct($aCfg, $aClientCfg, false);
42: 
43:         parent::$aDefaultPaths = array(
44:             'template_dir' => $aCfg['path']['contenido'] . 'plugins/smarty_templates/',
45:             'cache_dir' => $aCfg['path']['contenido_cache'],
46:             'compile_dir' => $aCfg['path']['contenido_cache'] . 'templates_c/'
47:         );
48: 
49:         parent::$bSmartyInstanciated = true;
50: 
51:         $this->resetPaths();
52:     }
53: 
54: }