mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-09 15:54:54 +02:00
1be0527523
and made Piwigo compatible with smarty 5.x
37 lines
673 B
PHP
37 lines
673 B
PHP
<?php
|
|
|
|
namespace Smarty\Template;
|
|
|
|
use Smarty\Smarty;
|
|
use Smarty\Template;
|
|
use Smarty\Exception;
|
|
|
|
/**
|
|
* Smarty Config Resource Data Object
|
|
* Metadata Container for Config Files
|
|
*
|
|
* @author Uwe Tews
|
|
*/
|
|
class Config extends Source {
|
|
|
|
/**
|
|
* Flag that source is a config file
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $isConfig = true;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
static protected $_incompatible_resources = ['extends' => true];
|
|
|
|
public function createCompiler(): \Smarty\Compiler\BaseCompiler {
|
|
return new \Smarty\Compiler\Configfile($this->smarty);
|
|
}
|
|
|
|
protected static function getDefaultHandlerFunc(Smarty $smarty) {
|
|
return $smarty->default_config_handler_func;
|
|
}
|
|
}
|