You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
add a lib directory; move smarty into it; add random_compat phar (for random_bytes() on PHP < 7)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty Method GetConfigVariable
|
||||
*
|
||||
* Smarty::getConfigVariable() method
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage PluginsInternal
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
class Smarty_Internal_Method_GetConfigVariable
|
||||
{
|
||||
/**
|
||||
* Valid for all objects
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $objMap = 7;
|
||||
|
||||
/**
|
||||
* gets a config variable value
|
||||
*
|
||||
* @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data
|
||||
* @param string $varName the name of the config variable
|
||||
* @param bool $errorEnable
|
||||
*
|
||||
* @return null|string the value of the config variable
|
||||
*/
|
||||
public function getConfigVariable(Smarty_Internal_Data $data, $varName = null, $errorEnable = true)
|
||||
{
|
||||
return $data->ext->configLoad->_getConfigVariable($data, $varName, $errorEnable);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user