mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-15 15:09:51 +01:00
src/Template/* to PSR-4
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
* @subpackage PHPunitPlugin
|
||||
*/
|
||||
|
||||
use Smarty\Template;
|
||||
|
||||
/**
|
||||
* Smarty {checkvar}
|
||||
*
|
||||
@@ -24,7 +26,7 @@ function smarty_function_checkvar($params, $template)
|
||||
$var = $params['var'];
|
||||
$ptr = $template;
|
||||
while ($ptr) {
|
||||
if (in_array('template', $types) && $ptr instanceof Smarty_Internal_Template) {
|
||||
if (in_array('template', $types) && $ptr instanceof Template) {
|
||||
$output .= "#{$ptr->source->name}:\${$var} =";
|
||||
$output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : '>unassigned<';
|
||||
$i = 0;
|
||||
|
||||
Reference in New Issue
Block a user