Bug fix for SmartyExtend set var call

This commit is contained in:
2023-03-13 10:51:09 +09:00
parent 583edbfe0a
commit 6cda319ed0

View File

@@ -453,8 +453,8 @@ class SmartyExtend extends \Smarty
* this is for frontend type and will not set any only admin needed variables * this is for frontend type and will not set any only admin needed variables
* *
* @param array<string,string> $options list with the following value: * @param array<string,string> $options list with the following value:
* compile_dir :BASE . TEMPLATES_C * compile_dir :BASE . TEMPLATES_C
* cache_dir :BASE . CACHE * cache_dir :BASE . CACHE
* js :JS * js :JS
* css :CSS * css :CSS
* font :FONT * font :FONT
@@ -468,7 +468,7 @@ class SmartyExtend extends \Smarty
*/ */
public function setSmartyVarsFrontend( public function setSmartyVarsFrontend(
array $options, array $options,
?\CoreLibs\Admin\Backend $cms ?\CoreLibs\Admin\Backend $cms = null
): void { ): void {
$this->setSmartyVars( $this->setSmartyVars(
false, false,
@@ -493,8 +493,8 @@ class SmartyExtend extends \Smarty
* wrapper call for setSmartyVars * wrapper call for setSmartyVars
* this is only for admin interface and will set additional variables * this is only for admin interface and will set additional variables
* @param array<string,string> $options list with the following value: * @param array<string,string> $options list with the following value:
* compile_dir :BASE . TEMPLATES_C * compile_dir :BASE . TEMPLATES_C
* cache_dir :BASE . CACHE * cache_dir :BASE . CACHE
* js :JS * js :JS
* css :CSS * css :CSS
* font :FONT * font :FONT