-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bugfix implement wrapper for removed method getConfigVariable() #286
- Loading branch information
Showing
6 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
libs/sysplugins/smarty_internal_method_getconfigvariable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters